Static assertion for size of save structs

This commit is contained in:
Martin Griffin
2022-05-25 17:46:48 +01:00
parent 2a6e57c082
commit 1cc59acca9
5 changed files with 16 additions and 0 deletions
+2
View File
@@ -67,6 +67,8 @@ struct RecordedBattleSave
u32 checksum;
};
STATIC_ASSERT(sizeof(struct RecordedBattleSave) <= SECTOR_DATA_SIZE, RecordedBattleSaveFreeSpace);
EWRAM_DATA u32 gRecordedBattleRngSeed = 0;
EWRAM_DATA u32 gBattlePalaceMoveSelectionRngValue = 0;
EWRAM_DATA static u8 sBattleRecords[MAX_BATTLERS_COUNT][BATTLER_RECORD_SIZE] = {0};