diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-07-24 17:42:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-24 17:42:24 +0200 |
commit | 81fd48eb1ea3f0c1131b02a1ccf583c30d23471b (patch) | |
tree | 678a16178eb06c87a3fc4b6df6fbbeb1c7b4eb68 /editor/plugins | |
parent | 4bf9031e528ee79270f7ca9a1d5e25518feb9925 (diff) |
Tilemap editor: Fix crash introduced in #17582
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/tile_map_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp index 19646f37b5..20158df5e8 100644 --- a/editor/plugins/tile_map_editor_plugin.cpp +++ b/editor/plugins/tile_map_editor_plugin.cpp @@ -526,7 +526,7 @@ PoolVector<Vector2> 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<Vector2>(); } else if (prev_id == TileMap::INVALID_CELL) { return PoolVector<Vector2>(); |