mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Core/VMaps: Fixed loading vmap tiles that have destructible buildings on them
Closes #31649
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user