summaryrefslogtreecommitdiffstats
path: root/src/animation/AnimManager.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-22 03:02:44 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-22 03:20:56 +0200
commitf3ed6659c32ec61c2c4c806707655e0c58123e4c (patch)
tree1d71dd86ef08d87e4ed703302224d330cecf4ae2 /src/animation/AnimManager.cpp
parentkilling peds increase chaos level (diff)
downloadre3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar
re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.gz
re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.bz2
re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.lz
re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.xz
re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.zst
re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.zip
Diffstat (limited to 'src/animation/AnimManager.cpp')
-rw-r--r--src/animation/AnimManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/animation/AnimManager.cpp b/src/animation/AnimManager.cpp
index 385f1f67..4694920a 100644
--- a/src/animation/AnimManager.cpp
+++ b/src/animation/AnimManager.cpp
@@ -1004,9 +1004,10 @@ CAnimManager::UncompressAnimation(CAnimBlendHierarchy *hier)
}else{
CLink<CAnimBlendHierarchy*> *link = ms_animCache.Insert(hier);
if(link == nil){
- ms_animCache.tail.prev->item->RemoveUncompressedData();
+ CAnimBlendHierarchy *lastHier = ms_animCache.tail.prev->item;
+ lastHier->RemoveUncompressedData();
ms_animCache.Remove(ms_animCache.tail.prev);
- ms_animCache.tail.prev->item->linkPtr = nil;
+ lastHier->linkPtr = nil;
link = ms_animCache.Insert(hier);
}
hier->linkPtr = link;