Initialize save to empty in test runner (#3215)

This commit is contained in:
Martin Griffin 2023-08-09 15:06:03 +01:00 committed by GitHub
parent 42992ca5ce
commit f6e6a1f383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
@ -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).