scpcb
scpcb copied to clipboard
If (Not ChannelPlaying(event\SoundCHN)) crashes the game
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.