From 81fd48eb1ea3f0c1131b02a1ccf583c30d23471b Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Tue, 24 Jul 2018 17:42:24 +0200 Subject: [PATCH] Tilemap editor: Fix crash introduced in #17582 --- editor/plugins/tile_map_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp index 19646f37b58..20158df5e84 100644 --- a/editor/plugins/tile_map_editor_plugin.cpp +++ b/editor/plugins/tile_map_editor_plugin.cpp @@ -526,7 +526,7 @@ PoolVector TileMapEditor::_bucket_fill(const Point2i &p_start, bool era if (!erase) { ids = get_selected_tiles(); - if (ids.size() == 0 && ids[0] == TileMap::INVALID_CELL) + if (ids.size() == 0 || ids[0] == TileMap::INVALID_CELL) return PoolVector(); } else if (prev_id == TileMap::INVALID_CELL) { return PoolVector();