scpcb icon indicating copy to clipboard operation
scpcb copied to clipboard

If (Not ChannelPlaying(event\SoundCHN)) crashes the game

Open theOneTrueFunniBoi opened this issue 1 year ago • 3 comments

In the function UpdateElevators, the line:

If (Not ChannelPlaying(event\SoundCHN)) Then event\SoundCHN = PlaySound_Strict(ElevatorMoveSFX)

Specifically the If (Not ChannelPlaying(event\SoundCHN)) part causes a memory access violation if the Previous If check (If event\SoundCHN = 0 Then) fails.

theOneTrueFunniBoi avatar Sep 16 '23 00:09 theOneTrueFunniBoi