From d6a88cdc4134c5938bc8c6a291d6f087ad75da07 Mon Sep 17 00:00:00 2001 From: volzhs Date: Sat, 23 Dec 2017 20:16:27 +0900 Subject: [PATCH] Fix crash from move_child at saving scene --- scene/main/node.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index de1ab9959aa..942a6d5428b 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -340,7 +340,8 @@ void Node::move_child(Node *p_child, int p_pos) { data.children[i]->notification(NOTIFICATION_MOVED_IN_PARENT); } for (const Map::Element *E = p_child->data.grouped.front(); E; E = E->next()) { - E->get().group->changed = true; + if (E->get().group) + E->get().group->changed = true; } data.blocked--;