1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fix build

This commit is contained in:
Ivan Savenko
2024-01-10 21:30:12 +02:00
parent ea1f05d15a
commit 9af7c63a26
18 changed files with 35 additions and 32 deletions

View File

@@ -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