1
0
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:
kdmcser
2025-05-13 01:04:27 +08:00
parent c464e953e2
commit 1c4d78c3fa

View File

@@ -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());
}