mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
One more fix.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user