From d09ec395ec59cedfdc7a65a40fa44bb5b37be0d1 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Sun, 10 May 2015 10:29:49 +0200 Subject: [PATCH] fix: avoid division by zero from faulty model config files --- source/src/renderparticles.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/renderparticles.cpp b/source/src/renderparticles.cpp index f48e08fa..bdd69ba7 100644 --- a/source/src/renderparticles.cpp +++ b/source/src/renderparticles.cpp @@ -566,6 +566,7 @@ void particle_flash(int type, float scale, float angle, const vec &p) void particle_splash(int type, int num, int fade, const vec &p) { if(parttypes[type].type==PT_BLOOD && !blood) return; + if(fade == 0) fade = 1; loopi(num) { const int radius = 150;