summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-08 13:51:42 +0100
committeraap <aap@papnet.eu>2021-01-08 13:51:42 +0100
commit8be05679249367b39bcee1e07d6831d11918210b (patch)
treeab13259d150966afc431656d0db65c5870561c3d /src/core/Streaming.cpp
parentwtf (diff)
downloadre3-8be05679249367b39bcee1e07d6831d11918210b.tar
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.gz
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.bz2
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.lz
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.xz
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.zst
re3-8be05679249367b39bcee1e07d6831d11918210b.zip
Diffstat (limited to '')
-rw-r--r--src/core/Streaming.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index 3e470fde..8a75b636 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -526,7 +526,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);