Skip to content
Snippets Groups Projects

Fix segfault when calling P_RemoveMobj from A_BunnyHop

Closed Hanicef requested to merge Hanicef/SRB2Classic:fix-removemobj-seesound into next

In Lua, calling P_RemoveMobj from A_BunnyHop action triggers a segfault due to a missing P_MobjWasRemoved check. Can be easily reproduced with this script:

function A_BunnyHop(mobj)
	P_RemoveMobj(mobj)
end

EDIT: Turns out A_BunnyHop was the culprit, but the segfault actually triggered in A_PlaySeeSound.

Edited by Hanicef

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading