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

Closes #31649

Signed-off-by: luis <[email protected]>
This commit is contained in:
Shauren
2026-02-01 17:44:22 -03:00
committed by luis
parent 3636899681
commit 6c06fb77f4
+3 -3
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)