mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix for mislaced hero rescued from Prison - https://bugs.vcmi.eu/view.php?id=3227
This commit is contained in:
committed by
Andrii Danylchenko
parent
a83753a7d2
commit
efb6580958
@@ -210,6 +210,11 @@ void CGObjectInstance::setType(si32 ID, si32 subID)
|
|||||||
appearance = handler->getTemplates(tile.terType)[0];
|
appearance = handler->getTemplates(tile.terType)[0];
|
||||||
else
|
else
|
||||||
appearance = handler->getTemplates()[0]; // get at least some appearance since alternative is crash
|
appearance = handler->getTemplates()[0]; // get at least some appearance since alternative is crash
|
||||||
|
if (ID == Obj::HERO)
|
||||||
|
{
|
||||||
|
//adjust for the prison offset
|
||||||
|
pos = visitablePos();
|
||||||
|
}
|
||||||
cb->gameState()->map->addBlockVisTiles(this);
|
cb->gameState()->map->addBlockVisTiles(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user