X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/fb083109b84a9f198b4949892b0b816801e1d196..83cd74d5ee7b06fcc8f7f15eec5520ccc1633679:/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp index b1564406..867181af 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp @@ -174,6 +174,8 @@ int CHG_TARIFF::Start(void *, const char * el, const char ** attr) const TARIFF * tariff = m_tariffs.FindByName(attr[1]); if (tariff != NULL) td = tariff->GetTariffData(); + else + return -1; return 0; } }