summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-20 17:56:30 +0200
committerMattes D <github@xoft.cz>2014-08-20 17:56:30 +0200
commit81979419ad175c98d462ef58cdd39c7c609cd7c5 (patch)
treee9e6e83162532c847bc4cbaeaba2ec462e4eb137 /src/Bindings
parentcPlayer reads ranks from cRankManager. (diff)
downloadcuberite-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 'src/Bindings')
-rw-r--r--src/Bindings/ManualBindings_RankManager.cpp4
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;
}