diff --git a/AI/Nullkiller/AIUtility.cpp b/AI/Nullkiller/AIUtility.cpp index fa62afa19..7bd82c32c 100644 --- a/AI/Nullkiller/AIUtility.cpp +++ b/AI/Nullkiller/AIUtility.cpp @@ -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); } }