Clean up AVOID_UB ifdefs

This commit is contained in:
Arceveti committed 2021-09-22 11:35:17 -07:00
1 parent f40a1978d9
commit 5afa901fcf
35 files changed
+26 -275

No files matched your search

-9
View File
@@ -347,10 +347,7 @@ struct ObjZone *make_zone(struct ObjGroup *a0, struct GdBoundingBox *bbox, struc
newZone->unk2C = a2;
newZone->unk30 = a0;
//! @bug Created `ObjZone` is not returned
#ifdef AVOID_UB
return newZone;
#endif
}
/* @ 22AF70 for 0x60 */
@@ -923,14 +920,8 @@ s32 apply_to_obj_types_in_group(s32 types, applyproc_t func, struct ObjGroup *gr
fnAppliedCount = 0;
//! @bug When `group` pointer is NULL, garbage is returned, not the
//! count of `fn` calls
if (group == NULL) {
#ifdef AVOID_UB
return fnAppliedCount;
#else
return;
#endif
}
if (group->linkType & 1) { // compressed data, not an Obj