diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Particle.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/render/Particle.cpp b/src/render/Particle.cpp index ff74bc67..a27a261a 100644 --- a/src/render/Particle.cpp +++ b/src/render/Particle.cpp @@ -904,9 +904,14 @@ void CParticle::Shutdown() { RwTextureDestroy(gpRainDripTex[i]); gpRainDripTex[i] = nil; - - RwTextureDestroy(gpRainDripDarkTex[i]); // hmm, i think gpRainDripDarkTex[1(one)] can crash, let's wait for report hehe - gpRainDripDarkTex[i] = nil; + +#ifdef FIX_BUGS + if (gpRainDripDarkTex[i]) +#endif + { + RwTextureDestroy(gpRainDripDarkTex[i]); + gpRainDripDarkTex[i] = nil; + } } RwTextureDestroy(gpBoatWakeTex); |