Remove m_active_objects.size() assertions

The size of the modify safe map is not what you think it is and hence unsuitable for these.
This commit is contained in:
Lars Mueller 2024-09-04 19:52:03 +02:00
parent 9126063caf
commit 080be0c63b

View File

@ -79,7 +79,6 @@ bool ActiveObjectMgr::registerObject(std::unique_ptr<ServerActiveObject> obj)
auto obj_id = obj->getId();
m_active_objects.put(obj_id, std::move(obj));
m_spatial_index.insert(pos.toArray(), obj_id);
assert(m_spatial_index.size() == m_active_objects.size());
auto new_size = m_active_objects.size();
verbosestream << "Server::ActiveObjectMgr::addActiveObjectRaw(): "