Removed calloc macro

This commit is contained in:
Eduardo Quezada
2022-09-16 20:34:22 -03:00
parent 63156b4398
commit e412ec30a0
6 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -913,7 +913,7 @@ void SaveLinkTrainerNames(void)
s32 j;
s32 nextSpace;
s32 connectedTrainerRecordIndices[MAX_RFU_PLAYERS];
struct TrainerNameRecord *newRecords = calloc(ARRAY_COUNT(gSaveBlock1Ptr->trainerNameRecords), sizeof(struct TrainerNameRecord));
struct TrainerNameRecord *newRecords = AllocZeroed(sizeof(gSaveBlock1Ptr->trainerNameRecords));
// Check if we already have a record saved for connected trainers.
for (i = 0; i < GetLinkPlayerCount(); i++)