mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Fix build
This commit is contained in:
@@ -1009,7 +1009,7 @@ scripting::Pool * BattleInfo::getContextPool() const
|
||||
{
|
||||
//this is real battle, use global scripting context pool
|
||||
//TODO: make this line not ugly
|
||||
return IObjectInterface::cb->getGlobalContextPool();
|
||||
return battleGetFightingHero(0)->cb->getGlobalContextPool();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user