diff --git a/src/effects.cpp b/src/effects.cpp index 9efe9b46db3..776ee717477 100644 --- a/src/effects.cpp +++ b/src/effects.cpp @@ -1534,6 +1534,11 @@ static void renderExplosionEffect(const EFFECT *psEffect, const glm::mat4 &viewM { const PIELIGHT brightness = WZCOL_WHITE; + if (psEffect == nullptr || psEffect->imd == nullptr) + { + return; + } + if (psEffect->type == EXPLOSION_TYPE_LAND_LIGHT) { if (rejectLandLight((LAND_LIGHT_SPEC)psEffect->specific))