diff options
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r-- | src/game_data.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index e75170e..4c0104f 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp | |||
@@ -109,6 +109,7 @@ struct GameData { | |||
109 | auto process_single_entrance = | 109 | auto process_single_entrance = |
110 | [this, room_id, from_room_id](const YAML::Node &option) { | 110 | [this, room_id, from_room_id](const YAML::Node &option) { |
111 | Exit exit_obj; | 111 | Exit exit_obj; |
112 | exit_obj.source_room = from_room_id; | ||
112 | exit_obj.destination_room = room_id; | 113 | exit_obj.destination_room = room_id; |
113 | 114 | ||
114 | if (option["door"]) { | 115 | if (option["door"]) { |
@@ -143,7 +144,7 @@ struct GameData { | |||
143 | switch (entrance_it.second.Type()) { | 144 | switch (entrance_it.second.Type()) { |
144 | case YAML::NodeType::Scalar: { | 145 | case YAML::NodeType::Scalar: { |
145 | // This is just "true". | 146 | // This is just "true". |
146 | rooms_[from_room_id].exits.push_back({.destination_room = room_id}); | 147 | rooms_[from_room_id].exits.push_back({.source_room = from_room_id, .destination_room = room_id}); |
147 | break; | 148 | break; |
148 | } | 149 | } |
149 | case YAML::NodeType::Map: { | 150 | case YAML::NodeType::Map: { |