fix loot spawn on 1.7.2 probably

This commit is contained in:
Gray
2024-03-12 20:18:39 -04:00
parent 072ffb312c
commit 134bd42ade

View File

@@ -26,9 +26,17 @@ public:
return this->ReadBitfieldValue(bAlreadySearchedOffset, bAlreadySearchedFieldMask);
}
FVector& GetLootSpawnLocation_Athena()
FVector/*&*/ GetLootSpawnLocation_Athena()
{
static auto LootSpawnLocation_AthenaOffset = this->GetOffset("LootSpawnLocation_Athena");
static auto LootSpawnLocation_AthenaOffset = this->GetOffset("LootSpawnLocation_Athena", false);
if (LootSpawnLocation_AthenaOffset == -1)
{
static auto LootSpawnLocationOffset = this->GetOffset("LootSpawnLocation", false);
// return this->Get<FVector>(LootSpawnLocationOffset);
return FVector();
}
return this->Get<FVector>(LootSpawnLocation_AthenaOffset);
}