make OBJECTTYPE::Exists() const

This commit is contained in:
Marco Costa
2024-04-03 22:09:05 -03:00
committed by majcosta
parent d670383f3a
commit 049ec47219
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -592,7 +592,7 @@ LBENODE* OBJECTTYPE::GetLBEPointer(unsigned int index)
}
bool OBJECTTYPE::exists()
bool OBJECTTYPE::exists() const
{
return(this && ubNumberOfObjects && usItem);
}
+1 -1
View File
@@ -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);