mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-31 05:20:08 +00:00
CogEngine: Fix crash when the CogEngine data asset is not present
Fix cheat colors always overriding the user color
This commit is contained in:
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user