diff options
author | aap <aap@papnet.eu> | 2021-01-08 13:34:49 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-08 13:34:49 +0100 |
commit | 37a58a04f2895a37fd961ee6e3ff7df80d22f110 (patch) | |
tree | 3483ae7a0de117b9f34b0481368dfe3d13d12e0e /src/core/Streaming.cpp | |
parent | first commit for LCS (diff) | |
download | re3-37a58a04f2895a37fd961ee6e3ff7df80d22f110.tar re3-37a58a04f2895a37fd961ee6e3ff7df80d22f110.tar.gz re3-37a58a04f2895a37fd961ee6e3ff7df80d22f110.tar.bz2 re3-37a58a04f2895a37fd961ee6e3ff7df80d22f110.tar.lz re3-37a58a04f2895a37fd961ee6e3ff7df80d22f110.tar.xz re3-37a58a04f2895a37fd961ee6e3ff7df80d22f110.tar.zst re3-37a58a04f2895a37fd961ee6e3ff7df80d22f110.zip |
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r-- | src/core/Streaming.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp index 81931b40..27d41fca 100644 --- a/src/core/Streaming.cpp +++ b/src/core/Streaming.cpp @@ -541,7 +541,12 @@ CStreaming::ConvertBufferToObject(int8 *buf, int32 streamId) // Txd and anim have to be loaded int animId = mi->GetAnimFileIndex(); +#ifdef FIX_BUGS + if(!HasTxdLoaded(mi->GetTxdSlot()) || +#else + // texDict will exist even if only first part has loaded if(CTxdStore::GetSlot(mi->GetTxdSlot())->texDict == nil || +#endif animId != -1 && !CAnimManager::GetAnimationBlock(animId)->isLoaded){ RemoveModel(streamId); ReRequestModel(streamId); |