소스 검색

One more fix.

DjWarmonger 12 년 전
부모
커밋
0c3ccda922
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 }