Skip to content

Commit

Permalink
Fix sdlext.showButtonDialog compat function
Browse files Browse the repository at this point in the history
Fix sdlext.showButtonDialog compat function not passing the `options` argument to the new function when compat code is not run
  • Loading branch information
Lemonymous committed Oct 22, 2022
1 parent 12e3f44 commit 44c5bb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/mod_loader/compat/dialog_helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ function sdlext.showButtonDialog(title, text, responseFn, buttons, tooltips, com
maxW = w,
maxH = h
}
else
options = compatArg1
end

return newShowButtonDialog(title, text, responseFn, buttons, tooltips, options)
Expand Down

0 comments on commit 44c5bb3

Please sign in to comment.