Skip to content

Commit 5f2cfc3

Browse files
committed
fix incorrect enum return
1 parent dbc7fd7 commit 5f2cfc3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CathodeLib/Scripts/CATHODE/CommandsPAK/Helpers/ParameterUtils.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,8 @@ public static ParameterData CreateDefaultParameterData(FunctionType function, Sh
712712
int enumType = reader.ReadInt32();
713713
if (enumType == -1)
714714
{
715-
return new cEnum();
715+
if (isCorrectParam)
716+
return new cEnum();
716717
}
717718
else
718719
{

0 commit comments

Comments
 (0)