mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Merge pull request #174 from vmarkovtsev/issue/981
Fix CGHeroInstance::isInitialized implementation
This commit is contained in:
commit
fc62cabb68
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user