aboutsummaryrefslogtreecommitdiff
path: root/src/game/TicketMgr.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-29 16:51:27 -0500
committermegamage <none@none>2009-04-29 16:51:27 -0500
commite490779de0b741839599a5924a3cc536ef4e763d (patch)
tree05a88af3ce96e79d25daddf9587fdf313a860ef1 /src/game/TicketMgr.cpp
parentb89d307f758915252670b7392d58b0181f9d5429 (diff)
parente695016e94c08fbef0f2e2df4df13fd27f0c86ef (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/TicketMgr.cpp')
-rw-r--r--src/game/TicketMgr.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/TicketMgr.cpp b/src/game/TicketMgr.cpp
index 69022b7dd27..52cf1ff0db6 100644
--- a/src/game/TicketMgr.cpp
+++ b/src/game/TicketMgr.cpp
@@ -60,12 +60,10 @@ GM_Ticket* TicketMgr::GetGMTicketByName(const char* name)
if(!normalizePlayerName(pname))
return NULL;
- Player *plr = objmgr.GetPlayer(pname.c_str());
- if(!plr)
+ uint64 playerGuid = objmgr.GetPlayerGUIDByName(pname.c_str());
+ if(!playerGuid)
return NULL;
- uint64 playerGuid = plr->GetGUID();
-
for(GmTicketList::iterator i = GM_TicketList.begin(); i != GM_TicketList.end();)
{
if((*i)->playerGuid == playerGuid && (*i)->closed == 0)