Core/Command: Fix a crash when using wp show info pathid

Fix #530 thanks to @BarbzYHOOL for testing
This commit is contained in:
Inifield
2017-08-02 19:35:22 +02:00
parent f353f9b5bb
commit 6aff74cd17

View File

@@ -783,7 +783,7 @@ public:
if (show == "info")
{
// Check if the user did specify a visual waypoint
if (target && target->GetEntry() != VISUAL_WAYPOINT)
if (!target || target->GetEntry() != VISUAL_WAYPOINT)
{
handler->PSendSysMessage(LANG_WAYPOINT_VP_SELECT);
handler->SetSentErrorMessage(true);