Revert "Fix new entity ID system (#39)"

This reverts commit ef9df3f9de.
This commit is contained in:
iProgramInCpp
2023-08-08 10:22:05 +03:00
parent ef9df3f9de
commit 57c2b339ea

View File

@@ -70,7 +70,6 @@ Entity::Entity(Level* pLevel)
Entity::~Entity()
{
releaseEntityId(m_EntityID);
}
void Entity::setLevel(Level* pLvl)
@@ -1083,8 +1082,6 @@ int Entity::allocateEntityId()
while (s_EntityIDs.find(id) != s_EntityIDs.end())
id++;
s_EntityIDs.insert(id);
return id;
}