1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Improve wander logging

This commit is contained in:
Dydzio 2018-08-09 18:24:04 +02:00
parent ff2ac5b34b
commit fa97940b4f

View File

@ -1470,7 +1470,8 @@ void VCAI::wander(HeroPtr h)
decomposeGoal(bestObjectGoal)->accept(this);
//wander should not cause heroes to be reserved - they are always considered free
logAi->debug("Of all %d destinations, object oid=%d seems nice", dests.size(), bestObjectGoal->objid);
auto chosenObject = cb->getObjInstance(ObjectInstanceID(bestObjectGoal->objid));
logAi->debug("Of all %d destinations, object %s at pos=%s seems nice", dests.size(), chosenObject->getObjectName(), chosenObject->pos.toString());
visitTownIfAny(h);
}