GBA: A bit less confusing addressing into the middle of a struct

This commit is contained in:
Jeffrey Pfau 2015-04-24 00:13:50 -07:00
parent d091de4057
commit 03c2eb0776
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ bool GBASavedataImportSharkPort(struct GBA* gba, struct VFile* vf, bool testChec
}
struct GBACartridge* cart = (struct GBACartridge*) gba->memory.rom;
memcpy(buffer.c, cart->title, 16);
memcpy(buffer.c, &cart->title, 16);
buffer.c[0x10] = 0;
buffer.c[0x11] = 0;
buffer.c[0x12] = cart->checksum;
@ -220,7 +220,7 @@ bool GBASavedataExportSharkPort(const struct GBA* gba, struct VFile* vf) {
}
size -= 0x1C;
memcpy(buffer.c, cart->title, 16);
memcpy(buffer.c, &cart->title, 16);
buffer.c[0x10] = 0;
buffer.c[0x11] = 0;
buffer.c[0x12] = cart->checksum;