Skip to content

Commit

Permalink
Merge pull request #56924 from KoBeWi/_or_null
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Jan 19, 2022
2 parents d80dbca + f74d52e commit 7a88f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/2d/tile_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 7a88f5c

Please sign in to comment.