Skip to content

Commit

Permalink
Fixed regression: xr_effects.stc_boom() crash at CNPP
Browse files Browse the repository at this point in the history
  • Loading branch information
Decane committed May 18, 2019
1 parent b7a371d commit 0bfebec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamedata/scripts/xr_effects.script
Expand Up @@ -1737,7 +1737,7 @@ function stc_change_tsg(actor, npc, p)
end

function stc_boom(actor, npc, p)
local p1 = p[1]
local p1 = p and p[1]
if p1 then
xr_sound.set_sound_play(0, p1) -- 0 = actor ID
else
Expand Down

1 comment on commit 0bfebec

@Decane
Copy link
Owner Author

@Decane Decane commented on 0bfebec May 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introduced by dd10934. Oops.

Please sign in to comment.