diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-31 20:52:30 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-31 20:54:33 +0200 |
commit | 5caaff6cd3a7ab7c89c563c60e3de3a18c78b060 (patch) | |
tree | 87786f25e212d5bed1fcf0864011ab70bdca2136 /src/scripting/lua.cpp | |
parent | 7bb688db40f4e7227022add135dba00a06ca8c45 (diff) | |
download | manaserv-5caaff6cd3a7ab7c89c563c60e3de3a18c78b060.tar.gz manaserv-5caaff6cd3a7ab7c89c563c60e3de3a18c78b060.tar.bz2 manaserv-5caaff6cd3a7ab7c89c563c60e3de3a18c78b060.tar.xz manaserv-5caaff6cd3a7ab7c89c563c60e3de3a18c78b060.zip |
Removed old warnings from chr_inv_change. They are handeled different now
Diffstat (limited to 'src/scripting/lua.cpp')
-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."); |