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:
parent
df4fe33c3a
commit
144ddba97d
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user