protect against missing keys param

develop
Myk Taylor 2023-09-12 23:08:55 -07:00
parent d2ae5463df
commit 863df21dd2
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

@ -962,6 +962,7 @@ int dfhack_lua_viewscreen::do_input(lua_State *L)
if (!self) return 0;
auto keys = (std::set<df::interface_key>*)lua_touserdata(L, 2);
if (!keys) return 0;
lua_getfield(L, -1, "onInput");