mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
fix boat instanceName not set bug in loading map
This commit is contained in:
@@ -624,6 +624,7 @@ void CGameState::initHeroes()
|
||||
|
||||
boat->setAnchorPos(hero->anchorPos());
|
||||
boat->appearance = handler->getTemplates().front();
|
||||
map->generateUniqueInstanceName(boat.get());
|
||||
map->addNewObject(boat);
|
||||
hero->setBoat(boat.get());
|
||||
}
|
||||
|
Reference in New Issue
Block a user