Parcourir la source

Fix CGHeroInstance::isInitialized implementation

Vadim Markovtsev il y a 9 ans
Parent
commit
f6679bba50
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/mapObjects/CGHeroInstance.h

+ 1 - 1
lib/mapObjects/CGHeroInstance.h

@@ -129,7 +129,7 @@ public:
 
 	inline bool isInitialized() const
 	{ // has this hero been on the map at least once?
-		return movement == UNINITIALIZED_MOVEMENT && mana == UNINITIALIZED_MANA;
+		return movement != UNINITIALIZED_MOVEMENT && mana != UNINITIALIZED_MANA;
 	}
 
 	//int3 getSightCenter() const; //"center" tile from which the sight distance is calculated