diff options
author | Inifield <kaiosown@gmail.com> | 2017-08-02 19:35:22 +0200 |
---|---|---|
committer | Inifield <kaiosown@gmail.com> | 2017-08-02 19:35:22 +0200 |
commit | 6aff74cd1760b4fd170f8869cc625741e83a9b23 (patch) | |
tree | 55fe04296fd88359505d04ac4f23f245547eec36 /src/scripts/Commands/cs_wp.cpp | |
parent | f353f9b5bb08cde4d75b13c1c1c33ae35da971b4 (diff) |
Core/Command: Fix a crash when using wp show info pathid
Fix #530 thanks to @BarbzYHOOL for testing
Diffstat (limited to 'src/scripts/Commands/cs_wp.cpp')
-rw-r--r-- | src/scripts/Commands/cs_wp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |