fix null dereference
This commit is contained in:
1 parent
1875cc306f
commit
07380d7c07
1 file changed
+1
-1
+1
-1
@@ -342,8 +342,8 @@ namespace music {
|
|||||||
control.raiseEvent(MICROBIT_MELODY_ID, MusicEvent.BackgroundMelodyResumed);
|
control.raiseEvent(MICROBIT_MELODY_ID, MusicEvent.BackgroundMelodyResumed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
currentMelody = null;
|
|
||||||
control.raiseEvent(MICROBIT_MELODY_ID, currentMelody.background ? MusicEvent.BackgroundMelodyEnded : MusicEvent.MelodyEnded);
|
control.raiseEvent(MICROBIT_MELODY_ID, currentMelody.background ? MusicEvent.BackgroundMelodyEnded : MusicEvent.MelodyEnded);
|
||||||
|
currentMelody = null;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user