1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-21 21:17:49 +02:00

One more fix.

This commit is contained in:
DjWarmonger 2013-12-23 21:22:42 +00:00
parent aec04d920e
commit 0c3ccda922

View File

@ -87,7 +87,7 @@ std::string Goals::AbstractGoal::name() const //TODO: virtualize
default:
return boost::lexical_cast<std::string>(goalType);
}
if (hero.h)
if (hero.get(true)) //FIXME: used to crash when we lost hero and failed goal
desc += " (" + hero->name + ")";
return desc;
}