summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-18 20:55:01 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-18 20:55:01 +0200
commiteb821ff240fabab6666705bd767e334c5220027a (patch)
tree12b5505d3537be9fe59c9b45a966611f98af0d4e /src/Entities/Player.cpp
parentFurnaces now update their block entity type (diff)
downloadcuberite-eb821ff240fabab6666705bd767e334c5220027a.tar
cuberite-eb821ff240fabab6666705bd767e334c5220027a.tar.gz
cuberite-eb821ff240fabab6666705bd767e334c5220027a.tar.bz2
cuberite-eb821ff240fabab6666705bd767e334c5220027a.tar.lz
cuberite-eb821ff240fabab6666705bd767e334c5220027a.tar.xz
cuberite-eb821ff240fabab6666705bd767e334c5220027a.tar.zst
cuberite-eb821ff240fabab6666705bd767e334c5220027a.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index f58a0a016..86ee4a32d 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();