Fix segfault due to dangling event object
This commit is contained in:
parent
64095821af
commit
c1306b4f72
1 changed files with 1 additions and 1 deletions
|
@ -321,8 +321,8 @@ void Editor::setMap(QString map_name) {
|
||||||
}
|
}
|
||||||
if (project) {
|
if (project) {
|
||||||
map = project->loadMap(map_name);
|
map = project->loadMap(map_name);
|
||||||
displayMap();
|
|
||||||
selected_events->clear();
|
selected_events->clear();
|
||||||
|
displayMap();
|
||||||
updateSelectedEvents();
|
updateSelectedEvents();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue