From 9108f7e3e52f7f5f86bac9530928d10377a13f5e Mon Sep 17 00:00:00 2001 From: nordsoft Date: Thu, 12 Oct 2023 13:40:28 +0200 Subject: [PATCH] Remove assert triggered while flying --- server/CGameHandler.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 273ea0514..88eeda6d0 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -1095,8 +1095,6 @@ bool CGameHandler::moveHero(ObjectInstanceID hid, int3 dst, ui8 teleporting, boo if (isInTheMap(guardPos)) guardian = getTile(guardPos)->visitableObjects.back(); - assert(guardian == nullptr || dynamic_cast(guardian) != nullptr); - const bool embarking = !h->boat && objectToVisit && objectToVisit->ID == Obj::BOAT; const bool disembarking = h->boat && t.terType->isLand()