diff options
| author | Shauren <shauren.trinity@gmail.com> | 2012-02-23 13:01:16 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2012-02-23 13:01:16 +0100 |
| commit | dc28b924151374776aefa04935379ad095eb4c06 (patch) | |
| tree | 011094e08fea11d09cc6643a8284702f43c948f6 /src/server/game/Battlegrounds/ArenaTeam.cpp | |
| parent | dbd8cbcfc4e5f89da98551db90e34a91ed339f3d (diff) | |
Core: Random cleanup + compile fix
Diffstat (limited to 'src/server/game/Battlegrounds/ArenaTeam.cpp')
| -rwxr-xr-x | src/server/game/Battlegrounds/ArenaTeam.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/ArenaTeam.cpp b/src/server/game/Battlegrounds/ArenaTeam.cpp index 02707261d13..a5c34e4b7ee 100755 --- a/src/server/game/Battlegrounds/ArenaTeam.cpp +++ b/src/server/game/Battlegrounds/ArenaTeam.cpp @@ -295,8 +295,10 @@ void ArenaTeam::SetCaptain(uint64 guid) if (newCaptain) { newCaptain->SetArenaTeamInfoField(GetSlot(), ARENA_TEAM_MEMBER, 0); + char const* oldCaptainName = oldCaptain ? oldCaptain->GetName() : ""; + uint32 oldCaptainLowGuid = oldCaptain ? oldCaptain->GetGUIDLow() : 0; sLog->outArena("Player: %s [GUID: %u] promoted player: %s [GUID: %u] to leader of arena team [Id: %u] [Type: %u].", - oldCaptain->GetName(), oldCaptain->GetGUIDLow(), newCaptain->GetName(), newCaptain->GetGUIDLow(), GetId(), GetType()); + oldCaptainName, oldCaptainLowGuid, newCaptain->GetName(), newCaptain->GetGUIDLow(), GetId(), GetType()); } } |
