From 5adb7120b01556c90750bd9db43fe56699c0078f Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Wed, 1 Aug 2012 20:50:47 +0200 Subject: Fixed wrong error raising in lua.cpp Reviewed-by: bjorn. --- src/scripting/lua.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/scripting/lua.cpp') diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 3368022..a759e0b 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -1966,10 +1966,10 @@ static int chr_set_special_recharge_speed(lua_State *s) const int special = checkSpecial(s, 2); const int speed = luaL_checkint(s, 3); - if (c->setSpecialRechargeSpeed(special, speed)) + if (!c->setSpecialRechargeSpeed(special, speed)) { luaL_error(s, - "chr_set_special_mana called with special " + "chr_set_special_recharge_speed called with special " "that is not owned by character."); } return 0; -- cgit