mirror of
https://github.com/zeldaret/oot.git
synced 2025-02-24 00:25:48 +00:00
investigated significance of garbage cursor position in magic arrows equips (result: none)
This commit is contained in:
parent
4f312782c5
commit
4b1f978ce6
1 changed files with 3 additions and 0 deletions
|
@ -468,6 +468,9 @@ void KaleidoScope_DrawItemSelect(PlayState* play) {
|
|||
&gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb);
|
||||
}
|
||||
} else if ((pauseCtx->mainState == PAUSE_MAIN_STATE_3) && (pauseCtx->pageIndex == PAUSE_ITEM)) {
|
||||
//! @bug cursorSlot is used uninitialized
|
||||
// This leads to reading from the itemVtx array at some index, typically OOB, and setting the cursor to an
|
||||
// unexpected position. However the cursor is not drawn in this state so it ends up not being an issue.
|
||||
KaleidoScope_SetCursorPos(pauseCtx, cursorSlot * 4, pauseCtx->itemVtx);
|
||||
pauseCtx->cursorColorSet = 4;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue