]> git.stg.codes - stg.git/commitdiff
Ticket 37. Cycle for added in the TARIFF_DATA_RES & operator() in struct
authorElena Mamontova <helenh463@gmail.com>
Mon, 22 Aug 2016 12:36:14 +0000 (15:36 +0300)
committerElena Mamontova <helenh463@gmail.com>
Mon, 22 Aug 2016 12:36:14 +0000 (15:36 +0300)
TARIFF_DATA_RES.

include/stg/tariff_conf.h

index 9de3083042cd5f55ddc839c6174590d655c4d066..cee3b4a5237d9f446caec2580cd6ef7c6fde54c2 100644 (file)
@@ -258,6 +258,8 @@ struct TARIFF_DATA_RES
     TARIFF_DATA_RES & operator=(const TARIFF_DATA & td)
         {
         tariffConf = td.tariffConf;
+        for (size_t i = 0; i < DIR_NUM; ++i)
+            dirPrice[i] = td.dirPrice[i];
         return *this;
         }