Skip to content

Commit 2b85ab9

Browse files
authored
Small fix
Forgot to check if program is active or not
1 parent 29ebd7d commit 2b85ab9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Basalt/objects/Program.lua

+3
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,9 @@ return function(name, parent)
708708

709709
customEventHandler = function(self, event, ...)
710710
base.customEventHandler(self, event, ...)
711+
if (curProcess == nil) then
712+
return
713+
end
711714
if(event=="basalt_resize")then
712715
local w, h = pWindow.getSize()
713716
local pW, pH = self:getSize()

0 commit comments

Comments
 (0)