diff --git a/rmf_traffic_editor/gui/building.cpp b/rmf_traffic_editor/gui/building.cpp index 872a53ca..e38b7a0c 100644 --- a/rmf_traffic_editor/gui/building.cpp +++ b/rmf_traffic_editor/gui/building.cpp @@ -96,6 +96,8 @@ bool Building::load(const string& _filename) if (y["reference_level_name"]) reference_level_name = y["reference_level_name"].as(); + else + reference_level_name = ""; // crowd_sim_impl is initialized when creating crowd_sim_table in editor.cpp // just in case the pointer is not initialized