This commit is contained in:
Oleg Petruny 2025-01-13 19:52:28 +01:00
parent 7ee5676411
commit 59dfc90fe9
4 changed files with 8 additions and 8 deletions

View File

@ -421,7 +421,7 @@ EDisplayMode UGraphicsSettingsHelper::GetDisplayMode(UCustomGameSettings* settin
EDisplayMode UGraphicsSettingsHelper::TextToDisplayMode(const FText& in)
{
static const UEnum* enumPtr = FindObject<UEnum>(ANY_PACKAGE, TEXT("EDisplayMode"), true);
static const UEnum* enumPtr = FindObject<UEnum>((UPackage*)-1, TEXT("EDisplayMode"), true);
if(!enumPtr)
return GetDefaultDisplayMode(nullptr);
@ -430,7 +430,7 @@ EDisplayMode UGraphicsSettingsHelper::TextToDisplayMode(const FText& in)
FText UGraphicsSettingsHelper::DisplayModeToText(const EDisplayMode mode)
{
static const UEnum* enumPtr = FindObject<UEnum>(ANY_PACKAGE, TEXT("EDisplayMode"), true);
static const UEnum* enumPtr = FindObject<UEnum>((UPackage*)-1, TEXT("EDisplayMode"), true);
if(!enumPtr)
return CommonTexts::Default;