diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-08-01 20:50:47 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-08-05 23:24:19 +0200 |
commit | 5adb7120b01556c90750bd9db43fe56699c0078f (patch) | |
tree | c425d0c8b6d9e5f00a9f08922e56cb5765f0868d | |
parent | dd7fafd1725694a1015704bfee40da0ad9b7311f (diff) | |
download | manaserv-5adb7120b01556c90750bd9db43fe56699c0078f.tar.gz manaserv-5adb7120b01556c90750bd9db43fe56699c0078f.tar.bz2 manaserv-5adb7120b01556c90750bd9db43fe56699c0078f.tar.xz manaserv-5adb7120b01556c90750bd9db43fe56699c0078f.zip |
Fixed wrong error raising in lua.cpp
Reviewed-by: bjorn.
-rw-r--r-- | src/scripting/lua.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 33680221..a759e0b4 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; |