]> git.stg.codes - stg.git/commitdiff
Ticket 52. Definition of the tariff pointer added to the ticket52
authorElena Mamontova <helenh463@gmail.com>
Mon, 12 Feb 2018 11:07:33 +0000 (13:07 +0200)
committerElena Mamontova <helenh463@gmail.com>
Mon, 12 Feb 2018 11:07:33 +0000 (13:07 +0200)
USER_IMPL::Init() function.

projects/stargazer/user_impl.cpp

index d6c749b71c5c635f91c3631e8438e41cd06d72d6..d530108b95e7f225b42e32ce544662559aba6ac3 100644 (file)
@@ -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;