diff --git a/Project Reboot 3.0/BuildingContainer.h b/Project Reboot 3.0/BuildingContainer.h index 847251c..6246ba3 100644 --- a/Project Reboot 3.0/BuildingContainer.h +++ b/Project Reboot 3.0/BuildingContainer.h @@ -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(LootSpawnLocationOffset); + return FVector(); + } + return this->Get(LootSpawnLocation_AthenaOffset); }