mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
prevent crash when loading invalid file
This commit is contained in:
parent
ea19f133d6
commit
39dee5a343
1 changed files with 2 additions and 0 deletions
|
@ -1680,6 +1680,8 @@ int FurnaceGUI::load(String path) {
|
|||
e->quitDispatch();
|
||||
if (!e->load(file,(size_t)len)) {
|
||||
logE("could not open file!\n");
|
||||
e->initDispatch();
|
||||
e->reset();
|
||||
return 1;
|
||||
}
|
||||
e->initDispatch();
|
||||
|
|
Loading…
Reference in a new issue