summaryrefslogtreecommitdiffstats
path: root/src/render/Particle.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2021-01-17 01:13:21 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2021-01-17 01:13:21 +0100
commitf5164f3804cea10cc9b64cb97da3b97316bff4d6 (patch)
tree66135abb1ccdcaa7191fc1f8114a4e1f8f448170 /src/render/Particle.cpp
parentMerge pull request #959 from Fire-Head/lcs (diff)
downloadre3-f5164f3804cea10cc9b64cb97da3b97316bff4d6.tar
re3-f5164f3804cea10cc9b64cb97da3b97316bff4d6.tar.gz
re3-f5164f3804cea10cc9b64cb97da3b97316bff4d6.tar.bz2
re3-f5164f3804cea10cc9b64cb97da3b97316bff4d6.tar.lz
re3-f5164f3804cea10cc9b64cb97da3b97316bff4d6.tar.xz
re3-f5164f3804cea10cc9b64cb97da3b97316bff4d6.tar.zst
re3-f5164f3804cea10cc9b64cb97da3b97316bff4d6.zip
Diffstat (limited to '')
-rw-r--r--src/render/Particle.cpp11
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);