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/refs/heads/ticket52?hp=afcbfd1a09e22ff4839ba5db42047c96f355506c 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;