Core/build: fixed build on Linux

Fixed an error about nullptr on cs_ticket.cpp
This commit is contained in:
Stefano Borzì
2016-08-09 16:14:13 +02:00
committed by GitHub
parent 4338156745
commit 5c815d3083

View File

@@ -238,7 +238,7 @@ public:
{
// Cannot add response to ticket, assigned to someone else
//! Console excluded
Player* player = handler->GetSession() ? handler->GetSession()->GetPlayer() : nullptr;
Player* player = handler->GetSession() ? handler->GetSession()->GetPlayer() : NULL;
if (player && ticket->IsAssignedNotTo(player->GetGUID()))
{
handler->PSendSysMessage(LANG_COMMAND_TICKETALREADYASSIGNED, ticket->GetId());