diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/scripting/lua.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index fba8b4d2..09cef205 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -577,8 +577,7 @@ static int chr_inv_change(lua_State *s) Inventory inv(q); for (int i = 0; i < nb_items; ++i) { - if (!(lua_isnumber(s, i * 2 + 2) || lua_isstring(s, i * 2 + 2)) || - !lua_isnumber(s, i * 2 + 3)) + if (!lua_isnumber(s, i * 2 + 3)) { luaL_error(s, "chr_inv_change called with " "incorrect parameters."); |