summaryrefslogtreecommitdiff
path: root/src/egg_hatch.c
diff options
context:
space:
mode:
authorExpoSeed <>2021-05-15 15:56:17 -0500
committerExpoSeed <>2021-05-15 15:56:17 -0500
commit361fa594b30005edaa8aef5f6b02ac8b15149cba (patch)
tree24cfa5b11022ac28cccd5634e95bfe1e2ad6040c /src/egg_hatch.c
parentab8318cc79de60413085b104125490cbae344169 (diff)
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]++;
}