summaryrefslogtreecommitdiffstats
path: root/src/core/References.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-17 17:08:26 +0200
committerGitHub <noreply@github.com>2020-04-17 17:08:26 +0200
commit1c74d111e8cafa4ad70837725c71f6d478390f01 (patch)
tree818918190bf4403c32137d7348a77e23b643a669 /src/core/References.cpp
parentimplemented CVector2D::NormaliseSafe for SkidMarks (diff)
parentappveyor setup (diff)
downloadre3-1c74d111e8cafa4ad70837725c71f6d478390f01.tar
re3-1c74d111e8cafa4ad70837725c71f6d478390f01.tar.gz
re3-1c74d111e8cafa4ad70837725c71f6d478390f01.tar.bz2
re3-1c74d111e8cafa4ad70837725c71f6d478390f01.tar.lz
re3-1c74d111e8cafa4ad70837725c71f6d478390f01.tar.xz
re3-1c74d111e8cafa4ad70837725c71f6d478390f01.tar.zst
re3-1c74d111e8cafa4ad70837725c71f6d478390f01.zip
Diffstat (limited to 'src/core/References.cpp')
-rw-r--r--src/core/References.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/core/References.cpp b/src/core/References.cpp
index e87f0fd5..3eb2eaf3 100644
--- a/src/core/References.cpp
+++ b/src/core/References.cpp
@@ -1,13 +1,13 @@
#include "common.h"
-#include "patcher.h"
+
#include "World.h"
#include "Vehicle.h"
#include "PlayerPed.h"
#include "Pools.h"
#include "References.h"
-CReference *CReferences::aRefs = (CReference*)0x70BBE0; //[NUMREFERENCES];
-CReference *&CReferences::pEmptyList = *(CReference**)0x8F1AF8;
+CReference CReferences::aRefs[NUMREFERENCES];
+CReference *CReferences::pEmptyList;
void
CReferences::Init(void)
@@ -57,9 +57,3 @@ CReferences::PruneAllReferencesInWorld(void)
e->PruneReferences();
}
}
-
-STARTPATCHES
- InjectHook(0x4A7350, CReferences::Init, PATCH_JUMP);
- InjectHook(0x4A7570, CReferences::RemoveReferencesToPlayer, PATCH_JUMP);
- InjectHook(0x4A75A0, CReferences::PruneAllReferencesInWorld, PATCH_JUMP);
-ENDPATCHES