diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-19 14:01:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 14:01:08 +0100 |
commit | 7a88f5cf1e3ab8d844b7cdb7fba39563b77a229b (patch) | |
tree | 75947a21e7f89a9e70fec366833401205bebc259 /scene | |
parent | d80dbcaef08c1b530dc9b9815fbfcd6a0470709a (diff) | |
parent | f74d52e80deb4a3ae6b46d4a1c7dd32d19bbfd54 (diff) |
Merge pull request #56924 from KoBeWi/_or_null
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/tile_map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 62dc4d1c15..5857b6710f 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -1809,7 +1809,7 @@ void TileMap::_scenes_update_dirty_quadrants(SelfList<TileMapQuadrant>::List &r_ // Clear the scenes. for (const KeyValue<Vector2i, String> &E : q.scenes) { - Node *node = get_node(E.value); + Node *node = get_node_or_null(E.value); if (node) { node->queue_delete(); } @@ -1857,7 +1857,7 @@ void TileMap::_scenes_update_dirty_quadrants(SelfList<TileMapQuadrant>::List &r_ void TileMap::_scenes_cleanup_quadrant(TileMapQuadrant *p_quadrant) { // Clear the scenes. for (const KeyValue<Vector2i, String> &E : p_quadrant->scenes) { - Node *node = get_node(E.value); + Node *node = get_node_or_null(E.value); if (node) { node->queue_delete(); } |