fix 5.0-6.02

This commit is contained in:
Milxnor
2023-04-08 09:23:23 -04:00
parent 5f5d7fb649
commit b194527e1b
3 changed files with 7 additions and 2 deletions

View File

@@ -373,7 +373,7 @@ std::vector<LootDrop> PickLootDrops(FName TierGroupName, bool bPrint, int recurs
}
}
if (Engine_Version <= 420) // ahhh
if (Fortnite_Version < 6) // ahhh
{
LTDTables.clear();
LPTables.clear();

View File

@@ -168,5 +168,5 @@ FORCEINLINE UObject* GetObjectByIndex(int32 Index)
FORCEINLINE FUObjectItem* GetItemByIndex(int32 Index)
{
return ChunkedObjects ? ChunkedObjects->GetItemByIndex(Index) : UnchunkedObjects->GetItemByIndex(Index);
return ChunkedObjects ? ChunkedObjects->GetItemByIndex(Index) : UnchunkedObjects ? UnchunkedObjects->GetItemByIndex(Index) : nullptr;
}

View File

@@ -115,7 +115,12 @@ static inline uint64 FindProcessEvent()
static inline uint64 FindObjectArray()
{
if (Engine_Version >= 421)
{
if (Fortnite_Version <= 6.02)
return Memcury::Scanner::FindPattern("48 8B 05 ? ? ? ? 48 8B 0C C8 48 8D 04 D1").RelativeOffset(3).Get();
return Memcury::Scanner::FindPattern("48 8B 05 ? ? ? ? 48 8B 0C C8 48 8B 04 D1").RelativeOffset(3).Get();
}
auto cc = Memcury::Scanner::FindPattern("48 8B 05 ? ? ? ? 48 8D 14 C8 EB 03 49 8B D6 8B 42 08 C1 E8 1D A8 01 0F 85 ? ? ? ? F7 86 ? ? ? ? ? ? ? ?", false);
auto addr = cc.Get() ? cc.RelativeOffset(3).Get() : 0; // 4.16