From e2bd3573b4d44b8f80197d8de98fcfc91e2229b8 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 30 Jun 2019 13:59:55 +0300 Subject: PlayBackThisFrameInterpolation and all it required... --- src/entities/Treadable.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/entities/Treadable.cpp') diff --git a/src/entities/Treadable.cpp b/src/entities/Treadable.cpp index e2eca36a..230d1633 100644 --- a/src/entities/Treadable.cpp +++ b/src/entities/Treadable.cpp @@ -1,7 +1,12 @@ #include "common.h" +#include "patcher.h" #include "rpworld.h" #include "Treadable.h" #include "Pools.h" void *CTreadable::operator new(size_t sz) { return CPools::GetTreadablePool()->New(); } void CTreadable::operator delete(void *p, size_t sz) { CPools::GetTreadablePool()->Delete((CTreadable*)p); } + +STARTPATCHES + InjectHook(0x405A10, &CTreadable::dtor, PATCH_JUMP); +ENDPATCHES \ No newline at end of file -- cgit v1.2.3