From: Elena Mamontova Date: Mon, 12 Feb 2018 11:07:33 +0000 (+0200) Subject: Ticket 52. Definition of the tariff pointer added to the X-Git-Tag: 2.409~28^2 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/1a42b634841392c7c0516bcb76fcc33f6d700808 Ticket 52. Definition of the tariff pointer added to the USER_IMPL::Init() function. --- diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index d6c749b7..d530108b 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -222,6 +222,7 @@ void USER_IMPL::Init() { password = "*_EMPTY_PASSWORD_*"; tariffName = NO_TARIFF_NAME; +tariff = tariffs->FindByName(tariffName); ips = StrToIPS("*"); lastWriteStat = stgTime + random() % settings->GetStatWritePeriod(); lastWriteDetailedStat = stgTime;