Skip to content

Commit

Permalink
ContentCAO: Fix segfault on quit (attached)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Oct 9, 2019
1 parent b49dfa9 commit cbcb9e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/activeobjectmgr.cpp
Expand Up @@ -29,7 +29,10 @@ void ActiveObjectMgr::clear()
// delete active objects
for (auto &active_object : m_active_objects) {
delete active_object.second;
// Object must be marked as gone when children try to detach
active_object.second = nullptr;
}
m_active_objects.clear();
}

void ActiveObjectMgr::step(
Expand Down

0 comments on commit cbcb9e0

Please sign in to comment.