fix mantiss 2142

This commit is contained in:
AlexVinS committed 2015-04-01 00:28:21 +03:00
1 parent 376b2436f8
commit fb707a6576
1 file changed
+1 -1
+1 -1
View File
@@ -421,7 +421,7 @@ void CRewardableObject::setPropertyDer(ui8 what, ui32 val)
void CRewardableObject::newTurn() const
{
if (resetDuration != 0 && cb->getDate(Date::DAY) % (resetDuration+1) == 0)
if (resetDuration != 0 && cb->getDate(Date::DAY) > 1 && cb->getDate(Date::DAY) % (resetDuration) == 1)
cb->setObjProperty(id, ObjProperty::REWARD_RESET, 0);
}