Skip to content

Commit dae06e2

Browse files
committed
Fix Broken Version Check for Memory issue
1 parent e776592 commit dae06e2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Solution/source/Memory/GTAmemory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ void GTAmemory::Init()
12961296
_vehiclePoolAddress = reinterpret_cast<UINT64*>(*reinterpret_cast<int*>(address + 3) + address + 7);
12971297

12981298
if (!g_isEnhanced) {
1299-
if (GTAmemory::GetGameVersion() > eGameVersion::VER_1_0_3751_0) {
1299+
if (GTAmemory::GetGameVersion() >= eGameVersion::VER_1_0_3788_0)
13001300
address = FindPattern("\x4C\x8B\x05\x00\x00\x00\x00\x41\x3B\x50\x00\x7D\x00\x49\x8B\x40", "xxx????xxx?x?xxx");
13011301
}
13021302
else {

Solution/source/main.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ enum eGameVersion : int
297297

298298
VER_1_0_3751_0,
299299

300+
VER_1_0_3788_0,
301+
300302
VER_1_0_811_8 = 1001,
301303

302304
VER_1_0_812_8 = 1002,
@@ -312,6 +314,10 @@ enum eGameVersion : int
312314
VER_1_0_1013_17 = 1007,
313315

314316
VER_1_0_1013_29 = 1008,
317+
318+
VER_1_0_1013_33 = 1009,
319+
320+
VER_1_0_1013_34 = 1010,
315321

316322
VER_SIZE,
317323
VER_UNK = -1

0 commit comments

Comments
 (0)