Commit 35b8bde 1 parent 48c4c45 commit 35b8bde Copy full SHA for 35b8bde
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2970,10 +2970,12 @@ namespace RC::UEGenerator
2970
2970
if (cpp_form == UEnum::ECppForm::EnumClass)
2971
2971
{
2972
2972
const auto underlying_type = m_underlying_enum_types.find (enum_native_name);
2973
- if (underlying_type->second == STR (" uint8" ) ||
2974
- (underlying_type == m_underlying_enum_types.end () && (get_highest_enum (uenum) <= 255 && get_lowest_enum (uenum) >= 0 )))
2973
+ if ((underlying_type != m_underlying_enum_types.end () &&
2974
+ underlying_type->second == STR (" uint8" )) ||
2975
+ (underlying_type == m_underlying_enum_types.end () &&
2976
+ get_highest_enum (uenum) <= 255 &&
2977
+ get_lowest_enum (uenum) >= 0 ))
2975
2978
{
2976
- // Underlying type is implicit or explicitly uint8.
2977
2979
flag_format_helper.add_switch (STR (" BlueprintType" ));
2978
2980
}
2979
2981
}
You can’t perform that action at this time.
0 commit comments