浏览代码

Remove assert - confirmed to be legal scenario

Ivan Savenko 1 年之前
父节点
当前提交
a7c45d8ec8
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      client/HeroMovementController.cpp

+ 2 - 1
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;
 }