some fixes... again

This commit is contained in:
Yoshman29
2022-12-04 23:03:04 +01:00
parent c9468b031e
commit 2dc72d7c48
4 changed files with 23 additions and 21 deletions
+1
View File
@@ -85,6 +85,7 @@ class GlobalScript {
script.call(name, args);
}
public static function onModSwitch(newMod:String) {
call("onDestroy");
if (script != null) {
script.destroy();
script = null;