summaryrefslogtreecommitdiffstats
path: root/src/animation/AnimBlendClumpData.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-03-28 09:37:04 +0100
committeraap <aap@papnet.eu>2020-03-28 09:37:04 +0100
commit739e80614db70f726c47180173ba19688bec5167 (patch)
tree83575bbe72328798dd21289de0a869e7024c69ae /src/animation/AnimBlendClumpData.cpp
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-739e80614db70f726c47180173ba19688bec5167.tar
re3-739e80614db70f726c47180173ba19688bec5167.tar.gz
re3-739e80614db70f726c47180173ba19688bec5167.tar.bz2
re3-739e80614db70f726c47180173ba19688bec5167.tar.lz
re3-739e80614db70f726c47180173ba19688bec5167.tar.xz
re3-739e80614db70f726c47180173ba19688bec5167.tar.zst
re3-739e80614db70f726c47180173ba19688bec5167.zip
Diffstat (limited to 'src/animation/AnimBlendClumpData.cpp')
-rw-r--r--src/animation/AnimBlendClumpData.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/animation/AnimBlendClumpData.cpp b/src/animation/AnimBlendClumpData.cpp
index 06625eb5..cc4281d6 100644
--- a/src/animation/AnimBlendClumpData.cpp
+++ b/src/animation/AnimBlendClumpData.cpp
@@ -36,9 +36,19 @@ CAnimBlendClumpData::ForAllFrames(void (*cb)(AnimBlendFrameData*, void*), void *
cb(&frames[i], arg);
}
+#include <new>
+
+class CAnimBlendClumpData_ : public CAnimBlendClumpData
+{
+public:
+ CAnimBlendClumpData *ctor(void) { return ::new (this) CAnimBlendClumpData(); }
+ void dtor(void) { this->CAnimBlendClumpData::~CAnimBlendClumpData(); }
+};
+
+
STARTPATCHES
- InjectHook(0x401880, &CAnimBlendClumpData::ctor, PATCH_JUMP);
- InjectHook(0x4018B0, &CAnimBlendClumpData::dtor, PATCH_JUMP);
+ InjectHook(0x401880, &CAnimBlendClumpData_::ctor, PATCH_JUMP);
+ InjectHook(0x4018B0, &CAnimBlendClumpData_::dtor, PATCH_JUMP);
InjectHook(0x4018F0, &CAnimBlendClumpData::SetNumberOfFrames, PATCH_JUMP);
InjectHook(0x401930, &CAnimBlendClumpData::ForAllFrames, PATCH_JUMP);
ENDPATCHES