mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
ContentCAO: Fix segfault on quit (attached)
This commit is contained in:
parent
b49dfa92ce
commit
cbcb9e0b1c
1 changed files with 3 additions and 0 deletions
|
@ -29,7 +29,10 @@ void ActiveObjectMgr::clear()
|
||||||
// delete active objects
|
// delete active objects
|
||||||
for (auto &active_object : m_active_objects) {
|
for (auto &active_object : m_active_objects) {
|
||||||
delete active_object.second;
|
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(
|
void ActiveObjectMgr::step(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue