fix crash on exit

This commit is contained in:
Fire-Head 2021-01-17 03:13:21 +03:00
parent 6075bf3fc2
commit f5164f3804
2 changed files with 12 additions and 3 deletions

View file

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