Skip to content

Commit 9a48e83

Browse files
authored
Make sure that skill options are compiled when setting the attribute (#57)
1 parent 0a50297 commit 9a48e83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addons/GME/Scripts/Game/GME/Editor/Containers/Attributes/GME_BaseAISkillEditorAttribute.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class GME_BaseAISkillEditorAttribute : SCR_BaseFloatValueHolderEditorAttribute
2727
if (!var)
2828
return;
2929

30+
if (m_aValues.IsEmpty())
31+
FillValues();
32+
3033
SCR_EditorAttributeFloatStringValueHolder valueHolder = m_aValues[var.GetInt()];
3134
SetSkill(item, valueHolder.GetFloatValue());
3235
}

0 commit comments

Comments
 (0)