Browse Source

Fix segfault due to dangling event object

Marcus Huderle 6 years ago
parent
commit
c1306b4f72
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      editor.cpp

+ 1
- 1
editor.cpp View File

@@ -321,8 +321,8 @@ void Editor::setMap(QString map_name) {
321 321
     }
322 322
     if (project) {
323 323
         map = project->loadMap(map_name);
324
-        displayMap();
325 324
         selected_events->clear();
325
+        displayMap();
326 326
         updateSelectedEvents();
327 327
     }
328 328
 }