From 24ce44ae52eb9935080e3f9c4619748300f5f9b2 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 21 Dec 2016 20:24:04 +0100 Subject: [PATCH] [IclipMap_t] Fix interface, it should work now --- .../Modules/AssetInterfaces/IclipMap_t.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp b/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp index 99a42f30..bb37082a 100644 --- a/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp +++ b/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp @@ -13,6 +13,12 @@ namespace Assets buffer->pushBlock(Game::XFILE_BLOCK_VIRTUAL); + if (asset->name) + { + buffer->saveString(builder->getAssetName(this->getType(), asset->name)); + Utils::Stream::ClearPointer(&dest->name); + } + if (asset->cPlanes) { AssertSize(Game::cplane_t, 20); @@ -390,17 +396,17 @@ namespace Assets if (m) { - dynEntDest->xModel = builder->requireAsset(Game::XAssetType::ASSET_TYPE_XMODEL, m->name).model; + dynEntDest[j].xModel = builder->requireAsset(Game::XAssetType::ASSET_TYPE_XMODEL, m->name).model; } if (fx) { - dynEntDest->destroyFx = builder->requireAsset(Game::XAssetType::ASSET_TYPE_FX, fx->name).fx; + dynEntDest[j].destroyFx = builder->requireAsset(Game::XAssetType::ASSET_TYPE_FX, fx->name).fx; } if (p) { - dynEntDest->physPreset = builder->requireAsset(Game::XAssetType::ASSET_TYPE_PHYSPRESET, p->name).physPreset; + dynEntDest[j].physPreset = builder->requireAsset(Game::XAssetType::ASSET_TYPE_PHYSPRESET, p->name).physPreset; } }