summaryrefslogtreecommitdiff
path: root/src/egg_hatch.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-05-16 12:24:04 -0400
committerGitHub <noreply@github.com>2021-05-16 12:24:04 -0400
commit9e690c07edb2219c6c19fc5869a9558cc9df973d (patch)
tree79e3819ea798c409d5903ae252cc97609eba581c /src/egg_hatch.c
parentab8318cc79de60413085b104125490cbae344169 (diff)
parenta7e3da2301aa7913f2437fe2152efcec6e96faef (diff)
Merge pull request #1437 from ExpoSeed/bugfixes
Various BUGFIXes and UBFIXes
Diffstat (limited to 'src/egg_hatch.c')
-rw-r--r--src/egg_hatch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egg_hatch.c b/src/egg_hatch.c
index 7a3019f56..576e5c0d9 100644
--- a/src/egg_hatch.c
+++ b/src/egg_hatch.c
@@ -584,6 +584,9 @@ static void Task_EggHatchPlayBGM(u8 taskID)
PlayBGM(MUS_EVOLUTION);
DestroyTask(taskID);
// UB: task is destroyed, yet the value is incremented
+ #ifdef UBFIX
+ return;
+ #endif
}
gTasks[taskID].data[0]++;
}