diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-11-30 10:32:35 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-11-30 10:32:35 +0800 |
commit | 6c5c773a2790613c80ef48363be172504bafdae3 (patch) | |
tree | 234c8edbb1f7b1a0f9d95a80273cf92b6ae7ed39 /editor/plugins/tiles | |
parent | 5826e960143fd416e0d02cf8f672d778f56da9ea (diff) |
Fix heap-use-after-free when changing alternative tile ID
Diffstat (limited to 'editor/plugins/tiles')
-rw-r--r-- | editor/plugins/tiles/tile_set_atlas_source_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tile_set_atlas_source_editor.cpp b/editor/plugins/tiles/tile_set_atlas_source_editor.cpp index fc13393582..ae7570e161 100644 --- a/editor/plugins/tiles/tile_set_atlas_source_editor.cpp +++ b/editor/plugins/tiles/tile_set_atlas_source_editor.cpp @@ -152,7 +152,7 @@ bool TileSetAtlasSourceEditor::AtlasTileProxyObject::_set(const StringName &p_na // ID and size related properties. if (tiles.size() == 1) { - const Vector2i &coords = tiles.front()->get().tile; + const Vector2i coords = tiles.front()->get().tile; const int &alternative = tiles.front()->get().alternative; if (alternative == 0) { |