Browse Source

Remove assert triggered while flying

nordsoft 2 years ago
parent
commit
9108f7e3e5
1 changed files with 0 additions and 2 deletions
  1. 0 2
      server/CGameHandler.cpp

+ 0 - 2
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<CGCreature*>(guardian) != nullptr);
-
 	const bool embarking = !h->boat && objectToVisit && objectToVisit->ID == Obj::BOAT;
 	const bool disembarking = h->boat
 		&& t.terType->isLand()