Explorar o código

One more fix.

DjWarmonger %!s(int64=12) %!d(string=hai) anos
pai
achega
0c3ccda922
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AI/VCAI/Goals.cpp

+ 1 - 1
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;
 }