From 789e640b9dc685f0dbcfa88a8ace2708f5dcab9e Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 21 Apr 2024 14:54:17 +0200 Subject: [PATCH] Fix build. --- scene/main/node.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 31e9b73d7d..7c316bf3b9 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); } } }