CogEngine: Fix crash when the CogEngine data asset is not present

Fix cheat colors always overriding the user color
This commit is contained in:
Arnaud Jamin
2025-02-06 10:21:31 -05:00
parent e56966482e
commit 27ad15488d
6 changed files with 51 additions and 24 deletions
@@ -110,6 +110,5 @@ bool UCogAbilityCheat_Execution_ActivateAbility::GetColor(const FCogWindow& InCa
const UCogAbilityConfig_Alignment* Config = InCallingWindow.GetConfig<UCogAbilityConfig_Alignment>();
const UCogAbilityDataAsset* Asset = InCallingWindow.GetAsset<UCogAbilityDataAsset>();
OutColor = Config->GetAbilityColor(Asset, *GameplayAbility);
return true;
return Config->GetAbilityColor(Asset, *GameplayAbility, OutColor);
}