From 3ffb6413e23eaf221e5d55798b905921eda409dd Mon Sep 17 00:00:00 2001 From: "Echo J." Date: Fri, 13 Mar 2026 07:24:39 +0000 Subject: [PATCH] UIStructs: Explicitly initialize all members of LaunchMoreOptions struct Fixes a "Texture Pack Not Present" message when trying to create a world --- .../Platform/Common/UI/UIStructs.h | 51 +++++++------------ 1 file changed, 19 insertions(+), 32 deletions(-) diff --git a/Minecraft.Client/Platform/Common/UI/UIStructs.h b/Minecraft.Client/Platform/Common/UI/UIStructs.h index 79bc42d4d..e4f228092 100644 --- a/Minecraft.Client/Platform/Common/UI/UIStructs.h +++ b/Minecraft.Client/Platform/Common/UI/UIStructs.h @@ -238,45 +238,32 @@ typedef struct _JoinMenuInitData // More Options typedef struct _LaunchMoreOptionsMenuInitData { - bool bOnlineGame; - bool bInviteOnly; - bool bAllowFriendsOfFriends; + bool bOnlineGame = true; + bool bInviteOnly = false; + bool bAllowFriendsOfFriends = true; - bool bGenerateOptions; - bool bStructures; - bool bFlatWorld; - bool bBonusChest; + bool bGenerateOptions = false; + bool bStructures = false; + bool bFlatWorld = false; + bool bBonusChest = false; - bool bPVP; - bool bTrust; - bool bFireSpreads; - bool bTNT; + bool bPVP = true; + bool bTrust = false; + bool bFireSpreads = true; + bool bTNT = true; - bool bHostPrivileges; - bool bResetNether; + bool bHostPrivileges = false; + bool bResetNether = false; - bool bOnlineSettingChangedBySystem; + bool bOnlineSettingChangedBySystem = false; - int iPad; + int iPad = -1; - std::uint32_t dwTexturePack; + std::uint32_t dwTexturePack = 0; - std::wstring seed; - int worldSize; - bool bDisableSaving; - - _LaunchMoreOptionsMenuInitData() - { - bOnlineGame = true; - bAllowFriendsOfFriends = true; - bPVP = true; - bFireSpreads = true; - bTNT = true; - iPad = -1; - worldSize = 3; - seed = L""; - bDisableSaving = false; - } + std::wstring seed = L""; + int worldSize = 3; + bool bDisableSaving = false; } LaunchMoreOptionsMenuInitData;