1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Changes related to #1444 — fixing affected savegames, assert to detect when things go wrong.

This commit is contained in:
Michał W. Urbańczyk
2013-09-27 15:20:42 +00:00
parent d4a8e90460
commit 0e5a59e2a5
5 changed files with 18 additions and 2 deletions

View File

@ -1369,6 +1369,10 @@ void CGameState::init(StartInfo * si)
}
}
//Early check for #1444-like problems
for(auto building : vti->builtBuildings)
assert(vti->town->buildings[building]);
//town events
for(CCastleEvent &ev : vti->events)
{