Skip to content

Commit

Permalink
Fixed programmer buffoonery (YARC-Official#733)
Browse files Browse the repository at this point in the history
null check in wrong place
  • Loading branch information
TheFatBastid authored Apr 6, 2024
1 parent af25d7c commit 08752dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Assets/Script/Integration/StageKit/StageKitInterpreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,8 @@ protected virtual void OnBeatLineEvent(Beatline value)

protected virtual void OnLightingEvent(LightingEvent value)
{
if (CurrentLightingCue == null)
{
return;
}

if (value != null && value.Type == LightingType.Keyframe_Next)
if (value != null && value.Type == LightingType.Keyframe_Next && CurrentLightingCue != null)
{
if (CurrentLightingCue.DirectListenEnabled)
{
Expand Down

0 comments on commit 08752dd

Please sign in to comment.