Possible Fix for SkySnow Crash (#664)

* Update SkySnow.cpp

* Update SkySnow.cpp
This commit is contained in:
MegaMech
2026-03-02 13:04:51 -07:00
committed by GitHub
parent 5c93004e38
commit 55175baecd
+4 -3
View File
@@ -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;
}
}
}