From 5caaff6cd3a7ab7c89c563c60e3de3a18c78b060 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Tue, 31 Jul 2012 20:52:30 +0200 Subject: Removed old warnings from chr_inv_change. They are handeled different now --- src/scripting/lua.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/scripting/lua.cpp') 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."); -- cgit v1.2.3-70-g09d2