diff --git a/Tactical/Item Types.cpp b/Tactical/Item Types.cpp index de7478ad..e8a7c848 100644 --- a/Tactical/Item Types.cpp +++ b/Tactical/Item Types.cpp @@ -592,7 +592,7 @@ LBENODE* OBJECTTYPE::GetLBEPointer(unsigned int index) } -bool OBJECTTYPE::exists() +bool OBJECTTYPE::exists() const { return(this && ubNumberOfObjects && usItem); } diff --git a/Tactical/Item Types.h b/Tactical/Item Types.h index cdd3d2a1..4fbfb650 100644 --- a/Tactical/Item Types.h +++ b/Tactical/Item Types.h @@ -546,7 +546,7 @@ public: bool operator==(OBJECTTYPE& compare); bool operator==(const OBJECTTYPE& compare)const; - bool exists(); + bool exists() const; bool IsActiveLBE(unsigned int index); bool HasAnyActiveLBEs(SOLDIERTYPE * pSoldier = NULL, UINT8 iter = 0); LBENODE* GetLBEPointer(unsigned int index);