Fixes issues with approaching bottleable items.

This commit is contained in:
Christopher Leggett 2022-08-14 18:40:48 -04:00
parent 5998dcff7a
commit 7e0e8c63af
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79

View File

@ -6104,7 +6104,7 @@ s32 func_8083E5A8(Player* this, GlobalContext* globalCtx) {
this->getItemId = iREG(68);
}
if (this->getItemId < GI_MAX || (gSaveContext.n64ddFlag && this->getItemId < RG_MAX)) {
if (this->getItemId < GI_MAX) {
GetItemEntry giEntry;
if (this->getItemEntry.objectId == OBJECT_INVALID) {
giEntry = ItemTable_Retrieve(this->getItemId);