15.00 & 15.10 storm crashing fix

This commit is contained in:
Weyn
2024-03-07 16:58:41 +01:00
committed by GitHub
parent c8802df7e6
commit 914d4746a4

View File

@@ -4,7 +4,7 @@
void SetZoneToIndexHook(AFortGameModeAthena* GameModeAthena, int OverridePhaseMaybeIDFK) void SetZoneToIndexHook(AFortGameModeAthena* GameModeAthena, int OverridePhaseMaybeIDFK)
{ {
static auto ZoneDurationsOffset = Fortnite_Version >= 15 && Fortnite_Version < 18 ? 0x258 static auto ZoneDurationsOffset = Fortnite_Version >= 15.20 && Fortnite_Version < 18 ? 0x258
: std::floor(Fortnite_Version) >= 18 ? 0x248 : std::floor(Fortnite_Version) >= 18 ? 0x248
: 0x1F8; // S13-S14 : 0x1F8; // S13-S14
@@ -170,4 +170,4 @@ void SetZoneToIndexHook(AFortGameModeAthena* GameModeAthena, int OverridePhaseMa
else else
LOG_WARN(LogZone, "Invalid SafeZoneIndicator!"); LOG_WARN(LogZone, "Invalid SafeZoneIndicator!");
} }
} }