thanks jyzo (cant believe im saying this)

This commit is contained in:
Gray
2023-12-05 20:48:28 -05:00
committed by GitHub
parent bc296ce505
commit 3e122f93cc

View File

@@ -121,8 +121,12 @@ static void ShowFoundation(AActor* BuildingFoundation, bool bShow = true)
static auto DynamicFoundationTypeOffset = BuildingFoundation->GetOffset("DynamicFoundationType", false);
if (DynamicFoundationTypeOffset != -1)
bool bChangeDynamicFoundationType = Fortnite_Version < 13;
if (DynamicFoundationTypeOffset != -1 && bChangeDynamicFoundationType)
{
BuildingFoundation->Get<uint8_t>(DynamicFoundationTypeOffset) = bShow ? Static : StartDisabled;
}
/* static auto bShowHLODWhenDisabledOffset = BuildingFoundation->GetOffset("bShowHLODWhenDisabled", false);