summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-18 22:33:55 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-18 22:33:55 +0200
commit2874bf73be010462d060553c1d9a358566a5c56a (patch)
treea56bf2277606e0a55932cc0b40b9516e366278bd /src/Entities
parentInfoDump: Fixed trailing whitespace. (diff)
parentFixed failure for cRankManager to restart (diff)
downloadcuberite-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')
-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 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();