Possible fix for snow crash

This commit is contained in:
MysterD 2022-05-03 22:01:06 -07:00
parent cad4930a73
commit aba828fa89
2 changed files with 2 additions and 1 deletions

View File

@ -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));

View File

@ -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"