diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2026-03-02 13:04:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 13:04:51 -0700 |
| commit | 55175baecdc5841f737f14aa8532106881a7f516 (patch) | |
| tree | 44112ba63e0c3afcfbb99b063b200f218160e569 /src | |
| parent | 5c93004e38ac2345ed4c3686ceba27f2aa427793 (diff) | |
Possible Fix for SkySnow Crash (#664)
* Update SkySnow.cpp
* Update SkySnow.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/engine/sky/SkySnow.cpp | 7 |
1 files 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 +} |
