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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user