diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 31e9b73d7..7c316bf3b 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -743,9 +743,9 @@ int Node::seen_by_get_count() { void Node::_propagate_pause_change_notification(int p_notification) { notification(p_notification); - for (int i = 0; i < data.children.size(); i++) { - if (data.children[i]->data.pause_mode == PAUSE_MODE_INHERIT) { - data.children[i]->_propagate_pause_change_notification(p_notification); + for (HashMap::Element *E = data.children.front(); E; E = E->next) { + if (E->value()->data.pause_mode == PAUSE_MODE_INHERIT) { + E->value()->_propagate_pause_change_notification(p_notification); } } }