From 72ea5e4ac9840f58cda0ad7aab52e6c0fdb8a13f Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Wed, 12 Dec 2012 13:32:37 +0000 Subject: [PATCH] - fixed crash in AI logging (objID is object index, not hero ID) --- AI/VCAI/VCAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/VCAI/VCAI.cpp b/AI/VCAI/VCAI.cpp index 8eb0e5bf2..28b5cb8ed 100644 --- a/AI/VCAI/VCAI.cpp +++ b/AI/VCAI/VCAI.cpp @@ -107,7 +107,7 @@ std::string CGoal::name() const case FIND_OBJ: return "FIND OBJECT " + boost::lexical_cast(objid); case VISIT_HERO: - return "VISIT HERO " + VLC->heroh->heroes[objid]->name; + return "VISIT HERO " + boost::lexical_cast(objid); case GET_ART_TYPE: return "GET ARTIFACT OF TYPE " + VLC->arth->artifacts[aid]->Name(); case ISSUE_COMMAND: