mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
CGameHandler no longer inherits CGameInfoCallback, reduce direct access
to gamestate
This commit is contained in:
@@ -99,7 +99,7 @@ void CRewardableObject::garrisonDialogClosed(IGameEventCallback & gameEvents, co
|
||||
|
||||
void CRewardableObject::doStartBattle(IGameEventCallback & gameEvents, const CGHeroInstance * hero) const
|
||||
{
|
||||
auto layout = BattleLayout::createLayout(cb, configuration.guardsLayout, hero, this);
|
||||
auto layout = BattleLayout::createLayout(*cb, configuration.guardsLayout, hero, this);
|
||||
gameEvents.startBattle(hero, this, visitablePos(), hero, nullptr, layout, nullptr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user