From f6679bba509dda46100636569b1fa225417c98a0 Mon Sep 17 00:00:00 2001 From: Vadim Markovtsev Date: Wed, 27 Jan 2016 09:44:04 +0300 Subject: [PATCH] Fix CGHeroInstance::isInitialized implementation --- lib/mapObjects/CGHeroInstance.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjects/CGHeroInstance.h b/lib/mapObjects/CGHeroInstance.h index 0e902035c..41ccbcdda 100644 --- a/lib/mapObjects/CGHeroInstance.h +++ b/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