Core/Tickets: Fixed crashes in ticket unassign and comment commands

Closes #1714
This commit is contained in:
Shauren
2011-05-27 17:05:01 +02:00
parent 2c1a1edef9
commit d07f6bb58f
+4 -3
View File
@@ -98,10 +98,11 @@ public:
std::string GetAssignedToName() const
{
std::string name;
// save queries if ticket is not assigned
if (_assignedTo)
if (sObjectMgr->GetPlayerNameByGUID(_assignedTo, name))
return name;
return NULL;
sObjectMgr->GetPlayerNameByGUID(_assignedTo, name);
return name;
}
const uint64& GetLastModifiedTime() const { return _lastModifiedTime; }
GMTicketEscalationStatus GetEscalatedStatus() const { return _escalatedStatus; }