mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
CGameHandler no longer inherits CGameInfoCallback, reduce direct access
to gamestate
This commit is contained in:
@@ -81,7 +81,7 @@ void ServerSpellCastEnvironment::apply(CatapultAttack & pack)
|
||||
|
||||
const IGameInfoCallback * ServerSpellCastEnvironment::getCb() const
|
||||
{
|
||||
return gh;
|
||||
return &gh->gameInfo();
|
||||
}
|
||||
|
||||
const CMap * ServerSpellCastEnvironment::getMap() const
|
||||
|
||||
Reference in New Issue
Block a user