1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Replaced AI assertion failure with error in log

This commit is contained in:
Ivan Savenko 2023-03-06 16:29:27 +02:00
parent df4fe33c3a
commit 144ddba97d

View File

@ -109,7 +109,9 @@ const CGHeroInstance * HeroPtr::get(bool doWeExpectNull) const
}
else
{
assert(obj);
if (!obj)
logAi->error("Accessing no longer accessible hero %s!", h->getNameTranslated());
//assert(obj);
//assert(owned);
}
}