From bb8623fa6e5584adeee6a613b3a28cb5550048d9 Mon Sep 17 00:00:00 2001 From: Roderic Morris Date: Thu, 26 Jun 2008 14:00:33 +0000 Subject: fix compile error, and improve guild related methods --- src/scripting/lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripting/lua.cpp') diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index cb8e906c..ae9ff1b2 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -188,7 +188,7 @@ static int LuaNpc_Choice(lua_State *s) */ static int LuaNpc_Create(lua_State *s) { - if (!lua_isstring(s, 1), !lua_isnumber(s, 2) || !lua_isnumber(s, 3) || !lua_isnumber(s, 4)) + if (!lua_isstring(s, 1) || !lua_isnumber(s, 2) || !lua_isnumber(s, 3) || !lua_isnumber(s, 4)) { raiseScriptError(s, "npc_create called with incorrect parameters."); return 0; -- cgit v1.2.3-70-g09d2