From 55175baecdc5841f737f14aa8532106881a7f516 Mon Sep 17 00:00:00 2001 From: MegaMech Date: Mon, 2 Mar 2026 13:04:51 -0700 Subject: [PATCH] Possible Fix for SkySnow Crash (#664) * Update SkySnow.cpp * Update SkySnow.cpp --- src/engine/sky/SkySnow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/sky/SkySnow.cpp b/src/engine/sky/SkySnow.cpp index c9e556fba..7c931befe 100644 --- a/src/engine/sky/SkySnow.cpp +++ b/src/engine/sky/SkySnow.cpp @@ -25,6 +25,7 @@ size_t SkySnow::_count = 0; SkySnow::SkySnow(ScreenContext* screen) : SkyActor(screen) { _idx = _count; + mVtx = (Vtx*)LOAD_ASSET(common_vtx_rectangle); mState = 0; mState2 = 0; @@ -102,13 +103,13 @@ void SkySnow::Draw(ScreenContext* screen, s32 arg0) { // render_clouds void SkySnow::func_80077E20() { u8* tex = (u8*) LOAD_ASSET(D_0D0293D8); - Vtx* vtx = (Vtx*) LOAD_ASSET(common_vtx_rectangle); + //Vtx* vtx = (Vtx*) LOAD_ASSET(common_vtx_rectangle); mTexture = tex; //! @bug frappe snowland There's something up with the handling of common_vtx_rectangle and the loading of 0x10 //! right here // root function: func_80078C70 - mVtx = vtx; + //mVtx = vtx; mTextureWidth = 16; mTextureHeight = 16; mScale = 0.15f; @@ -180,4 +181,4 @@ void SkySnow::func_80077F64(Camera* camera) { mState2 = 0; break; } -} \ No newline at end of file +}