From: Elena Mamontova Date: Mon, 22 Aug 2016 12:36:14 +0000 (+0300) Subject: Ticket 37. Cycle for added in the TARIFF_DATA_RES & operator() in struct X-Git-Tag: 2.409~112 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/f002c1b7709097d5405d672e7b07c5f00c9b3e36?hp=061f402c1baf9a2f76d8e1f6147e15d4ae304940 Ticket 37. Cycle for added in the TARIFF_DATA_RES & operator() in struct TARIFF_DATA_RES. --- diff --git a/include/stg/tariff_conf.h b/include/stg/tariff_conf.h index 9de30830..cee3b4a5 100644 --- a/include/stg/tariff_conf.h +++ b/include/stg/tariff_conf.h @@ -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; }