2
0
Эх сурвалжийг харах

Fix boat creation for heroes recruited on water

Ivan Savenko 2 жил өмнө
parent
commit
9b482a2b1e

+ 1 - 1
lib/mapObjects/CGHeroInstance.cpp

@@ -487,7 +487,7 @@ void CGHeroInstance::onHeroVisit(const CGHeroInstance * h) const
 				if (!boat)
 				{
 					//Create a new boat for hero
-					cb->createObject(boatPos, Obj::BOAT, getBoatType().getNum());
+					cb->createObject(boatPos, h->getOwner(), Obj::BOAT, getBoatType().getNum());
 					boatId = cb->getTopObj(boatPos)->id;
 				}
 			}