idk but this func crashes often enough

This commit is contained in:
Alug committed 2025-01-07 03:48:14 +01:00
1 parent 1a0bb18de7
commit ee8f937866
1 file changed
+4
+4
View File
@@ -2378,6 +2378,10 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
if (objectplacing)
return false;
// well no clue but this may happen ig
if (!target)
return false;
if (target->health <= 0)
return false;