mirror of
https://github.com/modmii/YAWM-ModMii-Edition.git
synced 2024-11-24 17:16:54 +01:00
Fix ES_EALIGN when deleting ticket(s?) (#1)
This commit is contained in:
parent
5283493c4e
commit
18f2e3f07f
@ -1259,16 +1259,18 @@ s32 Wad_Uninstall(FILE *fp)
|
||||
/* Delete tickets */
|
||||
if (ret >= 0) {
|
||||
u32 cnt;
|
||||
tikview view ATTRIBUTE_ALIGN(0x20) = {};
|
||||
|
||||
/* Delete all tickets */
|
||||
for (cnt = 0; cnt < viewCnt; cnt++) {
|
||||
ret = ES_DeleteTicket(&viewData[cnt]);
|
||||
memcpy(&view, viewData + cnt, sizeof(tikview));
|
||||
ret = ES_DeleteTicket(&view);
|
||||
if (ret < 0)
|
||||
break;
|
||||
}
|
||||
|
||||
if (ret < 0)
|
||||
printf(" ERROR! (ret = %d\n", ret);
|
||||
printf(" ERROR! (ret = %d)\n", ret);
|
||||
else
|
||||
printf(" OK!\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user