Promise Mascot Agency support
Some checks failed
FModel QA Builder / build (push) Has been cancelled

This commit is contained in:
LongerWarrior 2025-03-18 12:12:12 +02:00
parent 819c046f3f
commit 0e4d0431a3
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit c6c553b5b743189efb1b5e21a50187e2a5911f83
Subproject commit 24c816dfd462a95e087344419486a8f8008f77f5

View File

@ -1,6 +1,7 @@
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using CUE4Parse.UE4.Versions;
namespace FModel.Extensions;
@ -18,7 +19,8 @@ public static class EnumExtensions
var suffix = $"{value:D}";
var current = Convert.ToInt32(suffix);
var target = current & ~0xF;
var mask = value.GetType() == typeof(EGame) ? ~0xFFFF : ~0xF;
var target = current & mask;
if (current != target)
{
var values = Enum.GetValues(value.GetType());