1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add missing sao->isGone() checks

fixes #9883
This commit is contained in:
sfan5 2020-05-18 23:23:25 +02:00
parent 11723cffe0
commit 0fc51db772
2 changed files with 4 additions and 1 deletions

View file

@ -1623,6 +1623,8 @@ void ServerEnvironment::getSelectedActiveObjects(
const v3f line_vector = shootline_on_map.getVector();
for (auto obj : objs) {
if (obj->isGone())
continue;
aabb3f selection_box;
if (!obj->getSelectionBox(&selection_box))
continue;