1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-01 23:36:00 +00:00

avoid_ub in DmaMgr_GetFileNameImpl

This commit is contained in:
fig02 2022-02-11 20:38:22 -05:00
parent 7e0b72998d
commit cbddf7146d
3 changed files with 11 additions and 8 deletions

View file

@ -210,6 +210,9 @@ const char* DmaMgr_GetFileNameImpl(u32 vrom) {
}
//! @bug Since there is no return, in case the file isn't found, the return value will be a pointer to the end
// of gDmaDataTable
#ifdef AVOID_UB
return (const char*)iter;
#endif
}
const char* DmaMgr_GetFileName(u32 vrom) {