mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-15 13:33:36 +02:00
Attempt to track down crash on battle end
This commit is contained in:
parent
520f690d35
commit
3afbd03089
@ -142,6 +142,9 @@ CasualtiesAfterBattle::CasualtiesAfterBattle(const CBattleInfoCallback & battle,
|
||||
|
||||
void CasualtiesAfterBattle::updateArmy(CGameHandler *gh)
|
||||
{
|
||||
if (gh->getObjInstance(army->id) == nullptr)
|
||||
throw std::runtime_error("Object " + army->getObjectName() + " is not on the map!");
|
||||
|
||||
for (TStackAndItsNewCount &ncount : newStackCounts)
|
||||
{
|
||||
if (ncount.second > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user