summaryrefslogtreecommitdiffstats
path: root/src/entities/CivilianPed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/CivilianPed.cpp')
-rw-r--r--src/entities/CivilianPed.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/entities/CivilianPed.cpp b/src/entities/CivilianPed.cpp
index cf589211..a4881e71 100644
--- a/src/entities/CivilianPed.cpp
+++ b/src/entities/CivilianPed.cpp
@@ -2,13 +2,18 @@
#include "patcher.h"
#include "CivilianPed.h"
-CCivilianPed::CCivilianPed(int pedtype, int mi)
+WRAPPER void CCivilianPed::ProcessControl(void) { EAXJMP(0x4BFFE0); }
+
+CCivilianPed::CCivilianPed(int pedtype, int mi) : CPed(pedtype)
{
- ctor(pedtype, mi);
+ CPed::SetModelIndex(mi);
+ for (int i = 0; i < 10; i++)
+ {
+ m_nearPeds[i] = nil;
+ }
}
-WRAPPER CCivilianPed* CCivilianPed::ctor(int pedtype, int mi) { EAXJMP(0x4BFF30); }
-
STARTPATCHES
+ InjectHook(0x4BFF30, &CCivilianPed::ctor, PATCH_JUMP);
InjectHook(0x4BFFC0, &CCivilianPed::dtor, PATCH_JUMP);
ENDPATCHES \ No newline at end of file