diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-10-18 22:33:55 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-10-18 22:33:55 +0200 |
commit | 2874bf73be010462d060553c1d9a358566a5c56a (patch) | |
tree | a56bf2277606e0a55932cc0b40b9516e366278bd /src/Entities/Player.cpp | |
parent | InfoDump: Fixed trailing whitespace. (diff) | |
parent | Fixed failure for cRankManager to restart (diff) | |
download | cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.gz cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.bz2 cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.lz cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.xz cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.zst cuberite-2874bf73be010462d060553c1d9a358566a5c56a.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index ecafe6341..6bd0a3d20 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2134,19 +2134,19 @@ void cPlayer::ApplyFoodExhaustionFromMovement() void cPlayer::LoadRank(void) { // Load the values from cRankManager: - cRankManager & RankMgr = cRoot::Get()->GetRankManager(); - m_Rank = RankMgr.GetPlayerRankName(m_UUID); + cRankManager * RankMgr = cRoot::Get()->GetRankManager(); + m_Rank = RankMgr->GetPlayerRankName(m_UUID); if (m_Rank.empty()) { - m_Rank = RankMgr.GetDefaultRank(); + m_Rank = RankMgr->GetDefaultRank(); } else { // Update the name: - RankMgr.UpdatePlayerName(m_UUID, m_PlayerName); + RankMgr->UpdatePlayerName(m_UUID, m_PlayerName); } - m_Permissions = RankMgr.GetPlayerPermissions(m_UUID); - RankMgr.GetRankVisuals(m_Rank, m_MsgPrefix, m_MsgSuffix, m_MsgNameColorCode); + m_Permissions = RankMgr->GetPlayerPermissions(m_UUID); + RankMgr->GetRankVisuals(m_Rank, m_MsgPrefix, m_MsgSuffix, m_MsgNameColorCode); // Break up the individual permissions on each dot, into m_SplitPermissions: m_SplitPermissions.clear(); |