Skip to content

Commit

Permalink
make OBJECTTYPE::Exists() const
Browse files Browse the repository at this point in the history
  • Loading branch information
majcosta committed Apr 4, 2024
1 parent d670383 commit 049ec47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tactical/Item Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ LBENODE* OBJECTTYPE::GetLBEPointer(unsigned int index)

}

bool OBJECTTYPE::exists()
bool OBJECTTYPE::exists() const
{
return(this && ubNumberOfObjects && usItem);
}
Expand Down
2 changes: 1 addition & 1 deletion Tactical/Item Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ class OBJECTTYPE

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);
Expand Down

0 comments on commit 049ec47

Please sign in to comment.