diff --git a/at/at1200.cpp b/at/at1200.cpp index 49e5bfa4a..18a369fd8 100755 --- a/at/at1200.cpp +++ b/at/at1200.cpp @@ -394,7 +394,7 @@ bool TAttribuzioneBenemerenze::set_print(int) int bonusctrl = 0; int m_bonusctrl = 0; if (ultben != "**") - { + { TToken_string& condizioni = (TToken_string&) _tabben.find((const char*) ultben); TString str = condizioni.get(); bonusctrl = atoi(str); @@ -413,7 +413,8 @@ bool TAttribuzioneBenemerenze::set_print(int) str = c->get(); int m_anni = atoi(str); str = c->get(); - bool solodim = atoi(str); + const int sd = atoi(str); + bool solodim = sd > 0; if (bonus > bonusctrl) { bool attribuisci = false;