From 94ebd2816ed1cbf08334573175d2ed1dec18f962 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 7 Nov 2022 11:21:27 +0100 Subject: fix use after free --- editor/tile-editor.cpp | 1 + editor/tile-editor.hpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'editor') diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index 87d869b8..2d833443 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -6,6 +6,7 @@ #include "random.hpp" #include "serialize/json-helper.hpp" #include "serialize/tile-atlas.hpp" +#include namespace floormat { diff --git a/editor/tile-editor.hpp b/editor/tile-editor.hpp index 9593139c..5c90ff3d 100644 --- a/editor/tile-editor.hpp +++ b/editor/tile-editor.hpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include namespace floormat { @@ -25,7 +25,7 @@ private: }; String _name; - std::map> _atlases; + std::map> _atlases; tile_image_proto _selected_tile; tuple _permutation; selection_mode _selection_mode = sel_none; -- cgit v1.2.3