Skip to content

Commit

Permalink
Initialize save to empty in test runner (#3215)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgriffin authored Aug 9, 2023
1 parent 42992ca commit f6e6a1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_runner.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "global.h"
#include "characters.h"
#include "gpu_regs.h"
#include "load_save.h"
#include "main.h"
#include "malloc.h"
#include "random.h"
Expand Down Expand Up @@ -114,6 +115,10 @@ void CB2_TestRunner(void)
return;
}

MoveSaveBlocks_ResetHeap();
ClearSav1();
ClearSav2();

gIntrTable[7] = Intr_Timer2;

// The current test restarted the ROM (e.g. by jumping to NULL).
Expand Down

0 comments on commit f6e6a1f

Please sign in to comment.