Fix issue where playing song of healing to sharp remove the CS trigger. (#366)

This commit is contained in:
louist103
2024-05-22 09:05:04 -05:00
committed by Garrett Cox
parent 6ab624d432
commit 4af603b8b6
@@ -278,7 +278,11 @@ void EnPoComposer_SetupStartedCutscene(EnPoComposer* this) {
this->actionFunc = EnPoComposer_StartedCutscene;
}
// #region 2S2H [Port] There is an issue with MSVC where this function is removed in release mode and the check in EnPoComposer_UpdateAction fails.
// We need to do something in this function that has a side effect which will cause MSVC to not remove it.
// This modification seemed cleaner than `volatile int a = 5`. __declspec(noinlne) did not work.
void EnPoComposer_StartedCutscene(EnPoComposer* this, PlayState* play) {
sPlayerIsPlayingOcarina = false;
}
void EnPoComposer_SetupPlayCurse(EnPoComposer* this) {