mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 19:02:19 -05:00
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:
parent
e71583d47c
commit
8a69f1f020
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user