mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Crash fix
This commit is contained in:
parent
5065f5a104
commit
f91c85a900
@ -1473,6 +1473,7 @@ void VCAI::wander(HeroPtr h)
|
||||
if(bestObjectGoal->goalType == Goals::GET_OBJ)
|
||||
{
|
||||
auto chosenObject = cb->getObjInstance(ObjectInstanceID(bestObjectGoal->objid));
|
||||
if(chosenObject != nullptr)
|
||||
logAi->debug("Of all %d destinations, object %s at pos=%s seems nice", dests.size(), chosenObject->getObjectName(), chosenObject->pos.toString());
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user