mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Replaced AI assertion failure with error in log
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user