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
     }
321
     }
322
     if (project) {
322
     if (project) {
323
         map = project->loadMap(map_name);
323
         map = project->loadMap(map_name);
324
-        displayMap();
325
         selected_events->clear();
324
         selected_events->clear();
325
+        displayMap();
326
         updateSelectedEvents();
326
         updateSelectedEvents();
327
     }
327
     }
328
 }
328
 }