mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-25 07:18:02 -05:00
Fix segfault due to dangling event object
This commit is contained in:
parent
64095821af
commit
c1306b4f72
|
|
@ -321,8 +321,8 @@ void Editor::setMap(QString map_name) {
|
|||
}
|
||||
if (project) {
|
||||
map = project->loadMap(map_name);
|
||||
displayMap();
|
||||
selected_events->clear();
|
||||
displayMap();
|
||||
updateSelectedEvents();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user