From ee032fe12339e1e73eb698328e6e3d8ad22a6f42 Mon Sep 17 00:00:00 2001 From: MysterD Date: Tue, 3 May 2022 22:01:06 -0700 Subject: [PATCH] Possible fix for snow crash --- src/game/envfx_snow.c | 2 +- src/pc/mods/mod_cache.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/envfx_snow.c b/src/game/envfx_snow.c index 23cba4d2..85b5e9f0 100644 --- a/src/game/envfx_snow.c +++ b/src/game/envfx_snow.c @@ -438,7 +438,7 @@ Gfx *envfx_update_snow_internal(s32 snowMode, Vec3s marioPos, Vec3s camFrom, Vec vertex2 = gSnowFlakeVertex2; vertex3 = gSnowFlakeVertex3; - if (interpolated) { + if (interpolated && sSnowGfxPos) { gfxStart = sSnowGfxPos; } else { gfxStart = (Gfx *) alloc_display_list((gSnowParticleCount * 6 + 3) * sizeof(Gfx)); diff --git a/src/pc/mods/mod_cache.c b/src/pc/mods/mod_cache.c index d604d59b..f1000ae7 100644 --- a/src/pc/mods/mod_cache.c +++ b/src/pc/mods/mod_cache.c @@ -4,6 +4,7 @@ #include "mods.h" #include "mod.h" #include "mods_utils.h" +#define DISABLE_MODULE_LOG 1 #include "pc/debuglog.h" #include "pc/utils/md5.h"