use P_MobjWasRemoved for HWR_DrawSprite

This commit is contained in:
Alug committed 2024-12-22 21:19:08 +01:00
1 parent 4418653edb
commit c46ff7daff
1 file changed
+1 -1
+1 -1
View File
@@ -3725,7 +3725,7 @@ static void HWR_DrawSprite(gl_vissprite_t *spr)
INT32 shader = SHADER_NONE;
if (!spr->mobj)
if (P_MobjWasRemoved(spr->mobj))
return;
if (!spr->mobj->subsector)