Commit 5786cfb 1 parent 78dfb53 commit 5786cfb Copy full SHA for 5786cfb
File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
; sfall configuration settings
2
- ; v3.8.5
2
+ ; v3.8.6
3
3
4
4
[Main]
5
5
; Change to 1 if you want to use command line args to tell sfall to use another ini file.
Original file line number Diff line number Diff line change @@ -1104,6 +1104,15 @@ static void __declspec(naked) compute_attack_hook() {
1104
1104
}
1105
1105
}
1106
1106
1107
+ static void __declspec (naked) partyMemberGetCurLevel_hack() {
1108
+ __asm {
1109
+ mov esi, 0xFFFFFFFF ; // initialize party member index
1110
+ mov edi, dword ptr ds:[_partyMemberMaxCount];
1111
+ push 0x495FFC ;
1112
+ retn;
1113
+ }
1114
+ }
1115
+
1107
1116
1108
1117
void BugsInit ()
1109
1118
{
@@ -1405,4 +1414,7 @@ void BugsInit()
1405
1414
HookCall (0x423A99 , &compute_attack_hook);
1406
1415
dlogr (" Done" , DL_INIT);
1407
1416
// }
1417
+
1418
+ // Fix crash when calling partyMemberGetCurLevel_ on a critter that has no data in party.txt
1419
+ MakeJump (0x495FF6 , partyMemberGetCurLevel_hack);
1408
1420
}
Original file line number Diff line number Diff line change 22
22
23
23
#define VERSION_MAJOR 3
24
24
#define VERSION_MINOR 8
25
- #define VERSION_BUILD 5
25
+ #define VERSION_BUILD 6
26
26
#define VERSION_REV 0
27
27
#ifdef WIN2K
28
- #define VERSION_STRING "3.8.5 win2k"
28
+ #define VERSION_STRING "3.8.6 win2k"
29
29
#else
30
- #define VERSION_STRING "3.8.5 "
30
+ #define VERSION_STRING "3.8.6 "
31
31
#endif
32
32
33
33
#define CHECK_VAL (4)
You can’t perform that action at this time.
0 commit comments