Fixes receiving the wrong item when picking up ammo drops near a chest. (#2183)

* Fixes receiving the wrong item when picking up ammo drops near a chest.

Still shows the wrong model above links head but does give the right
item and shows the right text.

* Fixes get item model during first time pickup anim near chest.
This commit is contained in:
Christopher Leggett 2022-12-13 23:27:51 -05:00 committed by GitHub
parent e71583d47c
commit 8a69f1f020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1710,7 +1710,7 @@ s32 func_808332E4(Player* this) {
void func_808332F4(Player* this, PlayState* play) {
GetItemEntry giEntry;
if (this->getItemEntry.objectId == OBJECT_INVALID) {
if (this->getItemEntry.objectId == OBJECT_INVALID || (this->getItemId != this->getItemEntry.getItemId)) {
giEntry = ItemTable_Retrieve(this->getItemId);
} else {
giEntry = this->getItemEntry;
@ -12576,7 +12576,7 @@ s32 func_8084DFF4(PlayState* play, Player* this) {
}
if (this->unk_84F == 0) {
if (this->getItemEntry.objectId == OBJECT_INVALID) {
if (this->getItemEntry.objectId == OBJECT_INVALID || (this->getItemId != this->getItemEntry.getItemId)) {
giEntry = ItemTable_Retrieve(this->getItemId);
} else {
giEntry = this->getItemEntry;