From 2b85ab9746664b2fb82998defd580cbd54e39dd5 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sun, 1 Jan 2023 22:46:34 +0100 Subject: [PATCH] Small fix Forgot to check if program is active or not --- Basalt/objects/Program.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Basalt/objects/Program.lua b/Basalt/objects/Program.lua index b20913d..76f4594 100644 --- a/Basalt/objects/Program.lua +++ b/Basalt/objects/Program.lua @@ -708,6 +708,9 @@ return function(name, parent) customEventHandler = function(self, event, ...) base.customEventHandler(self, event, ...) + if (curProcess == nil) then + return + end if(event=="basalt_resize")then local w, h = pWindow.getSize() local pW, pH = self:getSize()