1
0

RankMgr: Fixed an ignored return value in the API.

This commit is contained in:
Mattes D 2014-08-20 17:56:30 +02:00
parent 949aa2f383
commit 81979419ad

View File

@ -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;
}