1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
This commit is contained in:
Michał W. Urbańczyk
2013-06-23 12:36:18 +00:00
parent 04d11519ef
commit 06f0a29b31
3 changed files with 5 additions and 4 deletions

View File

@@ -217,7 +217,7 @@ void CAdventureAI::saveGame(COSer<CSaveFile> &h, const int version) /*saving */
{
LOG_TRACE_PARAMS(logAi, "version '%i'", version);
CGlobalAI::saveGame(h, version);
bool hasBattleAI = battleAI;
bool hasBattleAI = static_cast<bool>(battleAI);
h << hasBattleAI;
if(hasBattleAI)
{