Skip to content

Commit

Permalink
imgui: fix window closing with x button
Browse files Browse the repository at this point in the history
the error was `[string "scripts/qimgui.lua"]:230: attempt to index a nil value (local 'self')`
  • Loading branch information
alexey-lysiuk committed Jan 25, 2024
1 parent 7b83c2c commit 3987cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Misc/qs_pak/scripts/qimgui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ local function updatewindows(wintofocus)

for _, window in ipairs(closedwindows) do
windows[window.title] = nil
window.onclose()
window:onclose()
end
end

Expand Down

0 comments on commit 3987cb5

Please sign in to comment.