From c793ab9ee178dbb4e0a19ba262d6a63828c32048 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 11 May 2019 01:18:29 +0300 Subject: [PATCH] Removed accidentally left debug thing. --- source/basecode.cpp | 1 - source/waypoint.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/basecode.cpp b/source/basecode.cpp index 3ab6846..eb7a460 100644 --- a/source/basecode.cpp +++ b/source/basecode.cpp @@ -1725,7 +1725,6 @@ void Bot::buyStuff (void) { else { engine.execBotCmd (ent (), "nvgs"); // use alias in steamcs } - engine.print ("%s bought googles", STRING (pev->netname)); } } break; diff --git a/source/waypoint.cpp b/source/waypoint.cpp index 080b9da..40e1e68 100644 --- a/source/waypoint.cpp +++ b/source/waypoint.cpp @@ -840,7 +840,7 @@ void Waypoint::erase (int target) { } int index = (target == INVALID_WAYPOINT_INDEX) ? getEditorNeareset () : target; - if (index == INVALID_WAYPOINT_INDEX) { + if (!exists (index)) { return; }