1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

fix mantiss 2142

This commit is contained in:
AlexVinS 2015-04-01 00:28:21 +03:00
parent 376b2436f8
commit fb707a6576

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);
}