mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-13 20:36:19 -05:00
Fix segfault due to dangling event object
This commit is contained in:
@@ -321,8 +321,8 @@ void Editor::setMap(QString map_name) {
|
||||
}
|
||||
if (project) {
|
||||
map = project->loadMap(map_name);
|
||||
displayMap();
|
||||
selected_events->clear();
|
||||
displayMap();
|
||||
updateSelectedEvents();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user