1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixes hota prisons replacing every h3 prison on h3m maps

This commit is contained in:
Ivan Savenko 2024-04-18 19:13:32 +03:00
parent 6af2609e0f
commit c87e60740b

View File

@ -607,10 +607,9 @@ void CGHeroInstance::pickRandomObject(CRandomGenerator & rand)
// to find object handler we must use heroClass->id
// after setType subID used to store unique hero identify id. Check issue 2277 for details
// exclude prisons which should use appearance as set in map, via map editor or RMG
if (ID != Obj::PRISON)
setType(ID, type->heroClass->getIndex());
else
setType(ID, 0);
this->subID = oldSubID;
}