From 0c3ccda922c8f159a13c6fd404901a77dc7f504e Mon Sep 17 00:00:00 2001 From: DjWarmonger <warmonger@vp.pl> Date: Mon, 23 Dec 2013 21:22:42 +0000 Subject: [PATCH] One more fix. --- AI/VCAI/Goals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/VCAI/Goals.cpp b/AI/VCAI/Goals.cpp index 971b59618..2461b2afc 100644 --- a/AI/VCAI/Goals.cpp +++ b/AI/VCAI/Goals.cpp @@ -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; }