diff options
author | Mattes D <github@xoft.cz> | 2014-08-20 17:56:30 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-20 17:56:30 +0200 |
commit | 81979419ad175c98d462ef58cdd39c7c609cd7c5 (patch) | |
tree | e9e6e83162532c847bc4cbaeaba2ec462e4eb137 | |
parent | cPlayer reads ranks from cRankManager. (diff) | |
download | cuberite-81979419ad175c98d462ef58cdd39c7c609cd7c5.tar cuberite-81979419ad175c98d462ef58cdd39c7c609cd7c5.tar.gz cuberite-81979419ad175c98d462ef58cdd39c7c609cd7c5.tar.bz2 cuberite-81979419ad175c98d462ef58cdd39c7c609cd7c5.tar.lz cuberite-81979419ad175c98d462ef58cdd39c7c609cd7c5.tar.xz cuberite-81979419ad175c98d462ef58cdd39c7c609cd7c5.tar.zst cuberite-81979419ad175c98d462ef58cdd39c7c609cd7c5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/ManualBindings_RankManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/ManualBindings_RankManager.cpp b/src/Bindings/ManualBindings_RankManager.cpp index b109b0097..be8ad12c8 100644 --- a/src/Bindings/ManualBindings_RankManager.cpp +++ b/src/Bindings/ManualBindings_RankManager.cpp @@ -83,8 +83,8 @@ static int tolua_cRankManager_AddPermissionToGroup(lua_State * L) S.GetStackValues(2, Permission, GroupName); // Add the group to the rank: - cRoot::Get()->GetRankManager().AddPermissionToGroup(Permission, GroupName); - return 0; + S.Push(cRoot::Get()->GetRankManager().AddPermissionToGroup(Permission, GroupName)); + return 1; } |