1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

- fixed crash in AI logging (objID is object index, not hero ID)

This commit is contained in:
Ivan Savenko 2012-12-12 13:32:37 +00:00
parent ca4f53aea1
commit 72ea5e4ac9

View File

@ -107,7 +107,7 @@ std::string CGoal::name() const
case FIND_OBJ:
return "FIND OBJECT " + boost::lexical_cast<std::string>(objid);
case VISIT_HERO:
return "VISIT HERO " + VLC->heroh->heroes[objid]->name;
return "VISIT HERO " + boost::lexical_cast<std::string>(objid);
case GET_ART_TYPE:
return "GET ARTIFACT OF TYPE " + VLC->arth->artifacts[aid]->Name();
case ISSUE_COMMAND: