MMC3: Make sure to free any allocated memory when using MMC3 as an external module.

This commit is contained in:
negativeExponent
2020-03-17 22:10:39 +08:00
parent 04ba2ac450
commit 7602b0b613
16 changed files with 19 additions and 3 deletions

View File

@@ -21,7 +21,7 @@
#include "mapinc.h"
#include "mmc3.h"
static uint8 lut[256] = {
static const uint8 lut[256] = {
0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x49, 0x19, 0x09, 0x59, 0x49, 0x19, 0x09,
0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x51, 0x41, 0x11, 0x01, 0x51, 0x41, 0x11, 0x01,
0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x59, 0x49, 0x19, 0x09, 0x59, 0x49, 0x19, 0x09,