mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-19 00:17:56 +02:00
Prefer to pass CGameState as reference instead of pointer
This commit is contained in:
@ -88,7 +88,7 @@ void FlaggableMapObject::giveBonusTo(const PlayerColor & player, bool onInit) co
|
||||
// Proper fix would be to make FlaggableMapObject into bonus system node
|
||||
// Unfortunately this will cause saves breakage
|
||||
if(onInit)
|
||||
gb.applyGs(cb->gameState());
|
||||
gb.applyGs(&cb->gameState());
|
||||
else
|
||||
cb->sendAndApply(gb);
|
||||
}
|
||||
|
Reference in New Issue
Block a user