workaround for vanilla save check tracker crash (#2359)

Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
briaguya 2023-01-17 21:40:02 -05:00 committed by GitHub
parent 418d0f8e6c
commit f665326a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,6 +286,11 @@ Item& ItemFromGIID(const int giid) {
}
index++;
}
// there are vanilla items that don't exist in the item table we're reading from here
// if we made it this far, it means we didn't find an item in the table
// if we don't return anything, the game will crash, so, as a workaround, return greg
return itemTable[GREEN_RUPEE];
}
//This function should only be used to place items containing hint text