RankMgr: Fixed an ignored return value in the API.
This commit is contained in:
parent
949aa2f383
commit
81979419ad
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user