diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2025-01-18 08:58:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-18 08:58:12 -0700 |
| commit | 8c46368d5d93ad278c124ffc6446ab691dff8082 (patch) | |
| tree | 3506dce3de08c514eeb3ee9d1dc575e7713331ca /src/code_8006E9C0.c | |
| parent | 04d56d6ba0705776149358608a27db8ab23e9449 (diff) | |
Fix data, option menus, impl boos, fix demo camera (#156)
* Fix data and option menus
* safer code
* wip boos impl
* finish impl boos
* Fix demo camera
* slightly better match
Diffstat (limited to 'src/code_8006E9C0.c')
| -rw-r--r-- | src/code_8006E9C0.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/code_8006E9C0.c b/src/code_8006E9C0.c index d7bfd374b..dba0d21a7 100644 --- a/src/code_8006E9C0.c +++ b/src/code_8006E9C0.c @@ -175,11 +175,14 @@ void func_8006EF60(void) { s32 i; // `huh`'s and `i`'s types have to differ, for some reason s16 huh; - u8* wut; + u8* wut = 0; + + // Commented the below code out because it is sketchy. + // Just-in-case it results in ub or similar. // clang-format off // God forgive me for my sins... - huh = 0x14; if (0) {} for (i = 0; i < huh; i++) { D_8018D248[i] = CourseManager_GetProps()->MinimapTexture; wut += ResourceGetTexSizeByName(CourseManager_GetProps()->MinimapTexture); } + // huh = 0x14; if (0) {} for (i = 0; i < huh; i++) {D_8018D248[i] = CourseManager_GetProps()->MinimapTexture; wut += ResourceGetTexSizeByName(CourseManager_GetProps()->MinimapTexture); } // clang-format on } |
