From 6aff74cd1760b4fd170f8869cc625741e83a9b23 Mon Sep 17 00:00:00 2001 From: Inifield Date: Wed, 2 Aug 2017 19:35:22 +0200 Subject: Core/Command: Fix a crash when using wp show info pathid Fix #530 thanks to @BarbzYHOOL for testing --- src/scripts/Commands/cs_wp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripts/Commands/cs_wp.cpp') diff --git a/src/scripts/Commands/cs_wp.cpp b/src/scripts/Commands/cs_wp.cpp index cdafdc2f27..870fb95e52 100644 --- a/src/scripts/Commands/cs_wp.cpp +++ b/src/scripts/Commands/cs_wp.cpp @@ -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); -- cgit v1.2.3