From a7c45d8ec8f1d6c042e96b9981fe7ab8855b1cad Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 27 Nov 2023 23:17:25 +0200 Subject: [PATCH] Remove assert - confirmed to be legal scenario --- client/HeroMovementController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/HeroMovementController.cpp b/client/HeroMovementController.cpp index 81a625d12..6b1152f60 100644 --- a/client/HeroMovementController.cpp +++ b/client/HeroMovementController.cpp @@ -100,7 +100,8 @@ void HeroMovementController::showTeleportDialog(const CGHeroInstance * hero, Tel } } - assert(0); // exit not found? How? + // may happen when hero has path but does not moves alongside it + // for example, while standing on teleporter set path that does not leads throught teleporter and press space LOCPLINT->cb->selectionMade(-1, askID); return; }