[IXModel] Fix lod surface pointer

This commit is contained in:
momo5502 2017-01-03 23:19:04 +01:00
parent ff72493ce3
commit 4c9d394958

View File

@ -155,6 +155,8 @@ namespace Assets
asset->lodInfo[i].modelSurfs = reader.readObject<Game::XModelSurfs>();
this->loadXModelSurfs(asset->lodInfo[i].modelSurfs, &reader);
Components::AssetHandler::StoreTemporaryAsset(Game::XAssetType::ASSET_TYPE_XMODELSURFS, { asset->lodInfo[i].modelSurfs });
asset->lodInfo[i].surfs = asset->lodInfo[i].modelSurfs->surfaces;
}
}
}