From 22eca66f86f6582cd07daf6470751819fa37c3b3 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 --- src/scripting/lua.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 09cef205..dfb69d49 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -1967,10 +1967,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 v1.2.3-60-g2f50