about summary refs log tree commit diff stats
path: root/game_data.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 01:29:41 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 01:29:41 -0400
commit47e59ea969c775bea316b1a910c845a7c8482091 (patch)
tree0cc5e900ba213a1aeb81cb95722a8def13c71c6b /game_data.cpp
parent1af4d354fbbded3b8086e370b6f4c20d084a5d68 (diff)
downloadlingo-ap-tracker-47e59ea969c775bea316b1a910c845a7c8482091.tar.gz
lingo-ap-tracker-47e59ea969c775bea316b1a910c845a7c8482091.tar.bz2
lingo-ap-tracker-47e59ea969c775bea316b1a910c845a7c8482091.zip
Changes to get it to compile on Windows
Diffstat (limited to 'game_data.cpp')
-rw-r--r--game_data.cpp7
1 files changed, 5 insertions, 2 deletions
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) {
308 308
309 if (!door_by_id_.count(full_name)) { 309 if (!door_by_id_.count(full_name)) {
310 door_by_id_[full_name] = doors_.size(); 310 door_by_id_[full_name] = doors_.size();
311 doors_.push_back({.name = door, .room = AddOrGetRoom(room)}); 311 doors_.push_back({
312 .room = AddOrGetRoom(room),
313 .name = door
314 });
312 } 315 }
313 316
314 return door_by_id_[full_name]; 317 return door_by_id_[full_name];
@@ -321,7 +324,7 @@ int GameData::AddOrGetPanel(std::string room, std::string panel) {
321 int panel_id = panels_.size(); 324 int panel_id = panels_.size();
322 panel_by_id_[full_name] = panel_id; 325 panel_by_id_[full_name] = panel_id;
323 panels_.push_back( 326 panels_.push_back(
324 {.id = panel_id, .name = panel, .room = AddOrGetRoom(room)}); 327 {.id = panel_id, .room = AddOrGetRoom(room), .name = panel});
325 } 328 }
326 329
327 return panel_by_id_[full_name]; 330 return panel_by_id_[full_name];