{
vec3_t center;
qboolean found = false;
- if (effectnameindex < 1 || effectnameindex >= MAX_PARTICLEEFFECTNAME)
+ if (effectnameindex < 1 || effectnameindex >= MAX_PARTICLEEFFECTNAME || !particleeffectname[effectnameindex][0])
{
Con_DPrintf("Unknown effect number %i received from server\n", effectnameindex);
- return; // invalid effect index
- }
- if (!particleeffectname[effectnameindex][0])
return; // no such effect
+ }
VectorLerp(originmins, 0.5, originmaxs, center);
if (!cl_particles_quake.integer && particleeffectinfo[0].effectnameindex)
{