diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-03-28 16:03:37 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-03-28 16:03:37 +1100 |
| commit | f1c8866b815a92aeda3133fd27051ce7c873cc57 (patch) | |
| tree | f2c2337b576255e0628d0a0daa66b3e9a8ac12bf /src/lua/lua_theme.cpp | |
| parent | 78c708e9390047ef24ccd8fbe0cd2d38ff758654 (diff) | |
| download | tangara-fw-f1c8866b815a92aeda3133fd27051ce7c873cc57.tar.gz | |
Check type is actually a table
Diffstat (limited to 'src/lua/lua_theme.cpp')
| -rw-r--r-- | src/lua/lua_theme.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_theme.cpp b/src/lua/lua_theme.cpp index fe69aa6a..4eb46499 100644 --- a/src/lua/lua_theme.cpp +++ b/src/lua/lua_theme.cpp @@ -36,6 +36,7 @@ static auto set_style(lua_State* L) -> int { static auto set_theme(lua_State* L) -> int { std::string class_name; + luaL_checktype(L, -1, LUA_TTABLE); lua_pushnil(L); /* first key */ while (lua_next(L, -2) != 0) { /* uses 'key' (at index -2) and 'value' (at index -1) */ |
