diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-08-11 19:13:17 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-08-11 19:39:36 +0200 |
commit | 45ddbbd7383eca59e487cf1eec010456c1a97d02 (patch) | |
tree | 55b3e8547c698adb08a37cb241f084d669a591c0 | |
parent | 81dde2687f2f80f5f365a02d68913322d35e9be1 (diff) |
Fix icon loading error a boot
-rw-r--r-- | main/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index 9376d83204..c640129565 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1464,6 +1464,7 @@ bool Main::start() { String iconpath = GLOBAL_DEF("application/config/icon", "Variant()"); if (iconpath != "") { Ref<Image> icon; + icon.instance(); if (icon->load(iconpath) == OK) OS::get_singleton()->set_icon(icon); } |