From c7cd6b2971eaa883e47acfa7af4c8ea36002c953 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 22 Jul 2022 17:07:48 +0200 Subject: [PATCH] Add CStdMemAlloc::Realloc --- r5dev/tier0/memstd.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/r5dev/tier0/memstd.h b/r5dev/tier0/memstd.h index 91949f15..f433006d 100644 --- a/r5dev/tier0/memstd.h +++ b/r5dev/tier0/memstd.h @@ -7,7 +7,13 @@ public: template T* Alloc(size_t nSize) { - const int index = 1; + const int index = 0; + return CallVFunc(index, this, nSize); + } + template + T* Realloc(T* pMem, size_t nSize) + { + const int index = 2; return CallVFunc(index, this, nSize); } template