1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-23 21:29:13 +02:00

Fix build

This commit is contained in:
Ivan Savenko 2024-08-28 13:12:11 +00:00
parent d4ba7e12b0
commit 462aea7e9a
2 changed files with 4 additions and 4 deletions

View File

@ -1901,15 +1901,15 @@ void NewTurn::applyGs(CGameState *gs)
gs->globalEffects.reduceBonusDurations(Bonus::OneWeek); gs->globalEffects.reduceBonusDurations(Bonus::OneWeek);
//TODO not really a single root hierarchy, what about bonuses placed elsewhere? [not an issue with H3 mechanics but in the future...] //TODO not really a single root hierarchy, what about bonuses placed elsewhere? [not an issue with H3 mechanics but in the future...]
for(const auto & manaPack : heroesMana) for(auto & manaPack : heroesMana)
manaPack.applyGs(gs); manaPack.applyGs(gs);
for(const auto & movePack : heroesMovement) for(auto & movePack : heroesMovement)
movePack.applyGs(gs); movePack.applyGs(gs);
gs->heroesPool->onNewDay(); gs->heroesPool->onNewDay();
for(const auto & entry : playerIncome) for(auto & entry : playerIncome)
{ {
gs->getPlayerState(entry.first)->resources += entry.second; gs->getPlayerState(entry.first)->resources += entry.second;
gs->getPlayerState(entry.first)->resources.amin(GameConstants::PLAYER_RESOURCES_CAP); gs->getPlayerState(entry.first)->resources.amin(GameConstants::PLAYER_RESOURCES_CAP);

View File

@ -1136,6 +1136,7 @@ struct DLL_LINKAGE InfoWindow : public CPackForClient //103 - displays simple i
ui16 soundID = 0; ui16 soundID = 0;
void visitTyped(ICPackVisitor & visitor) override; void visitTyped(ICPackVisitor & visitor) override;
void applyGs(CGameState * gs) override {}
template <typename Handler> void serialize(Handler & h) template <typename Handler> void serialize(Handler & h)
{ {
@ -1180,7 +1181,6 @@ struct DLL_LINKAGE NewTurn : public CPackForClient
h & newWeekNotification; h & newWeekNotification;
} }
}; };
void applyGs(CGameState * gs) override {}
struct DLL_LINKAGE SetObjectProperty : public CPackForClient struct DLL_LINKAGE SetObjectProperty : public CPackForClient
{ {