diff --git a/src/windows/tile_list.cpp b/src/windows/tile_list.cpp index 5b3696c..6e4e238 100644 --- a/src/windows/tile_list.cpp +++ b/src/windows/tile_list.cpp @@ -251,7 +251,7 @@ void TileList::draw(const GameData& game_data, MapTile& mode1_placing) { } if(ImGui::Button("+")) { - groups.emplace_back("group " + std::to_string(groups.size() + 1)); + groups.push_back(TileGroup {"group " + std::to_string(groups.size() + 1)}); } if(drag_end) {