Skip to content

Fix various segfaults caused by missing P_MobjWasRemoved checks

Hanicef requested to merge Hanicef/SRB2:fix-missing-mobjwasremoved-checks into next

Found various places where the game could potentially segfault due to missing P_MobjWasRemoved checks. Discovered using this script:

addHook("MobjLineCollide", function (mobj, line)
	P_RemoveMobj(mobj)
end)

Merge request reports