use lwoobjid for ghost candidate

This commit is contained in:
David Markowitz 2024-02-10 20:54:26 -08:00
parent e1dc847e1d
commit 7ad5a3a890
2 changed files with 2 additions and 2 deletions

View File

@ -549,7 +549,7 @@ void EntityManager::CheckGhosting(Entity* entity) {
}
}
Entity* EntityManager::GetGhostCandidate(int32_t id) {
Entity* EntityManager::GetGhostCandidate(LWOOBJID id) const {
for (auto* entity : m_EntitiesToGhost) {
if (entity->GetObjectID() == id) {
return entity;

View File

@ -55,7 +55,7 @@ public:
void UpdateGhosting();
void UpdateGhosting(Entity* player);
void CheckGhosting(Entity* entity);
Entity* GetGhostCandidate(int32_t id);
Entity* GetGhostCandidate(LWOOBJID id) const;
bool GetGhostingEnabled() const;
void ScheduleForKill(Entity* entity);