Core/VMaps: Fixed loading vmap tiles that have destructible buildings on them

Closes #31649
This commit is contained in:
Shauren
2026-02-01 20:19:59 +01:00
parent a904327656
commit b115db8235

View File

@@ -320,9 +320,6 @@ namespace VMAP
ModelSpawn spawn;
if (ModelSpawn::readFromFile(fileResult.TileFile.get(), spawn))
{
if (spawn.flags & MOD_PATH_ONLY && !vm->LoadPathOnlyModels)
continue;
// update tree
uint32 referencedVal = 0;
if (fread(&referencedVal, sizeof(uint32), 1, fileResult.SpawnIndicesFile.get()) != 1)
@@ -339,6 +336,9 @@ namespace VMAP
continue;
}
if (spawn.flags & MOD_PATH_ONLY && !vm->LoadPathOnlyModels)
continue;
// acquire model instance
std::shared_ptr<WorldModel> model = vm->acquireModelInstance(iBasePath, spawn.name);
if (!model)