Fix demos not working

This commit is contained in:
Agent X 2024-06-28 20:42:13 -04:00
parent 95677cc5e9
commit d83e03728c
1 changed files with 2 additions and 0 deletions

View File

@ -1217,6 +1217,8 @@ static void start_demo(void) {
} }
if (sDemoNumber >= 0 && sDemoNumber <= 6) { if (sDemoNumber >= 0 && sDemoNumber <= 6) {
gCurrDemoInput = NULL;
alloc_anim_dma_table(&gDemo, gDemoInputs, gDemoTargetAnim);
load_patchable_table(&gDemo, sDemoNumber, false); load_patchable_table(&gDemo, sDemoNumber, false);
gCurrDemoInput = ((struct DemoInput *) gDemo.targetAnim); gCurrDemoInput = ((struct DemoInput *) gDemo.targetAnim);
} else { } else {