Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko committed Oct 15, 2024
1 parent 2025b0f commit eec5671
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions decompile/General/LOAD/LOAD_A40_Hub_Main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ void DECOMP_LOAD_Hub_Main(int bigfilePtr)

gGT = sdata->gGT;

// not in the OG game, but for some reason decomp
// needs it to prevent crashing on Nitro Court,
// something bugs in 4P Life Limit that makes stepFlagSet
// try to make the advHub flip, maybe from null AI data?
if((gGT->gameMode1 & ADVENTURE_ARENA) == 0) return;

int stepFlagSet = gGT->drivers[0]->stepFlagSet;
int nextLevelID = (stepFlagSet & 0x30) >> 4;
int needSwapNow = (stepFlagSet & 0xc0) >> 6;
Expand Down

0 comments on commit eec5671

Please sign in to comment.