From 47e59ea969c775bea316b1a910c845a7c8482091 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 3 May 2023 01:29:41 -0400 Subject: Changes to get it to compile on Windows --- game_data.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'game_data.cpp') diff --git a/game_data.cpp b/game_data.cpp index b1504de..80ffd97 100644 --- a/game_data.cpp +++ b/game_data.cpp @@ -308,7 +308,10 @@ int GameData::AddOrGetDoor(std::string room, std::string door) { if (!door_by_id_.count(full_name)) { door_by_id_[full_name] = doors_.size(); - doors_.push_back({.name = door, .room = AddOrGetRoom(room)}); + doors_.push_back({ + .room = AddOrGetRoom(room), + .name = door + }); } return door_by_id_[full_name]; @@ -321,7 +324,7 @@ int GameData::AddOrGetPanel(std::string room, std::string panel) { int panel_id = panels_.size(); panel_by_id_[full_name] = panel_id; panels_.push_back( - {.id = panel_id, .name = panel, .room = AddOrGetRoom(room)}); + {.id = panel_id, .room = AddOrGetRoom(room), .name = panel}); } return panel_by_id_[full_name]; -- cgit 1.4.1