Skip to content

Commit 93d3b02

Browse files
Fix reference file name being kept when loading new building (#501) (#503)
Signed-off-by: Luca Della Vedova <[email protected]>
1 parent 35c45c4 commit 93d3b02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rmf_traffic_editor/gui/building.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ bool Building::load(const string& _filename)
9696

9797
if (y["reference_level_name"])
9898
reference_level_name = y["reference_level_name"].as<string>();
99+
else
100+
reference_level_name = "";
99101

100102
// crowd_sim_impl is initialized when creating crowd_sim_table in editor.cpp
101103
// just in case the pointer is not initialized

0 commit comments

Comments
 (0)