فهرست منبع

Fixed visitable objects resetting on day 7 (1847)

Ivan Savenko 11 سال پیش
والد
کامیت
f55d335e1c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lib/mapObjects/CRewardableObject.cpp

+ 1 - 1
lib/mapObjects/CRewardableObject.cpp

@@ -421,7 +421,7 @@ void CRewardableObject::setPropertyDer(ui8 what, ui32 val)
 
 void CRewardableObject::newTurn() const
 {
-	if (resetDuration != 0 && cb->getDate(Date::DAY) % resetDuration == 0)
+	if (resetDuration != 0 && cb->getDate(Date::DAY) % (resetDuration+1) == 0)
 		cb->setObjProperty(id, ObjProperty::REWARD_RESET, 0);
 }