Browse Source

revert fix for boat

Laserlicht 1 month ago
parent
commit
8b653ea3fb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/mapObjects/CGHeroInstance.cpp

+ 1 - 0
lib/mapObjects/CGHeroInstance.cpp

@@ -1319,6 +1319,7 @@ void CGHeroInstance::setBoat(CGBoat* newBoat)
 	if (newBoat)
 	{
 		boardedBoat = newBoat->id;
+		attachTo(*newBoat);
 		newBoat->setBoardedHero(this);
 	}
 	else if (boardedBoat.hasValue())