File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#include " CModelInfo.hh"
7
7
#include " ParserUtils.hh"
8
+ #include " common/minhook.hh"
8
9
#include " mission/missions_YscUtils.hh"
9
10
#include " peds_Compatibility.hh"
10
11
@@ -210,13 +211,10 @@ public:
210
211
// Hook to reset the saved player model during saving to make sure
211
212
// you don't get a random player on loading without Rainbomizer and
212
213
// (more importantly) to prevent softlocks and crashes this causes.
213
- // Pattern from Robot (don't insert u word here)
214
- REGISTER_JMP_HOOK (12 ,
215
- " ? 89 5c ? ? 55 56 57 41 54 41 55 41 56 41 57 ? 8d "
216
- " ? ? d9 ? 81 ec 90 00 00 00 ? 8b ? ? ? ? ? 33 f6 ? "
217
- " 8b f1 ? 8b ? ? ? 85 ff 0f 84 ? ? ? ? ? 8b" ,
218
- 0 , FixSavedPlayerModel, void ,
219
- CPlayerPedSaveStructure *);
214
+ // Pattern from Parik (don't insert u word here)
215
+ REGISTER_MH_HOOK_BRANCH (
216
+ " 89 ? c8 00 00 00 eb ? ? 8b ? ? 8b c8 ? 89 ? e8 ? ? ? ? " , 17 ,
217
+ FixSavedPlayerModel, void , CPlayerPedSaveStructure *);
220
218
221
219
// This patch enables phone models for all ped models
222
220
injector::MakeNOP (
You can’t perform that action at this time.
0 commit comments