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:
parent
9126063caf
commit
080be0c63b
@ -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(): "
|
||||
|
Loading…
Reference in New Issue
Block a user