mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 14:24:56 +00:00
Numerous uninitialized memory fixes
This commit is contained in:
@@ -48,6 +48,7 @@ CHudVisorBeamMenu::CHudVisorBeamMenu(CGuiFrame& baseHud, EHudVisorBeamMenu type,
|
||||
|
||||
x24_model_ghost = static_cast<CGuiModel*>(x0_baseHud.FindWidget(hecl::Format("%sghost", ModelNames[int(x4_type)])));
|
||||
|
||||
x28_menuItems.resize(4);
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
SMenuItem& item = x28_menuItems[i];
|
||||
item.x0_model_loz = static_cast<CGuiModel*>(
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace urde {
|
||||
CRasterFont::CRasterFont(urde::CInputStream& in, urde::IObjectStore& store) {
|
||||
u32 magic;
|
||||
u32 magic = 0;
|
||||
in.readBytesToBuf(&magic, 4);
|
||||
if (magic != SBIG('FONT'))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user