mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
TerrainTile now uses identifiers instead of pointers to VLC
This commit is contained in:
@ -101,7 +101,7 @@ void CTownInstanceConstructor::initializeObject(CGTownInstance * obj) const
|
||||
|
||||
void CTownInstanceConstructor::randomizeObject(CGTownInstance * object, vstd::RNG & rng) const
|
||||
{
|
||||
auto templ = getOverride(object->cb->getTile(object->pos)->terType->getId(), object);
|
||||
auto templ = getOverride(object->cb->getTile(object->pos)->getTerrainID(), object);
|
||||
if(templ)
|
||||
object->appearance = templ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user