1
0

Fixed unchecked return values.

This commit is contained in:
madmaxoft 2014-08-11 16:06:40 +02:00
parent 53862961ab
commit e0b45c1893

View File

@ -57,8 +57,8 @@ static int tolua_cRankManager_AddGroupToRank(lua_State * L)
S.GetStackValues(2, GroupName, RankName); S.GetStackValues(2, GroupName, RankName);
// Add the group to the rank: // Add the group to the rank:
cRoot::Get()->GetRankManager().AddGroupToRank(GroupName, RankName); S.Push(cRoot::Get()->GetRankManager().AddGroupToRank(GroupName, RankName));
return 0; return 1;
} }
@ -287,7 +287,10 @@ static int tolua_cRankManager_GetPlayerMsgVisuals(lua_State * L)
// Get the permissions: // Get the permissions:
AString MsgPrefix, MsgSuffix, MsgNameColorCode; AString MsgPrefix, MsgSuffix, MsgNameColorCode;
cRoot::Get()->GetRankManager().GetPlayerMsgVisuals(PlayerUUID, MsgPrefix, MsgSuffix, MsgNameColorCode); if (!cRoot::Get()->GetRankManager().GetPlayerMsgVisuals(PlayerUUID, MsgPrefix, MsgSuffix, MsgNameColorCode))
{
return 0;
}
// Push the results: // Push the results:
S.Push(MsgPrefix); S.Push(MsgPrefix);