Rename itemOnA and itemOnA, fix jp demo

This commit is contained in:
Tal Hayon
2022-01-12 06:23:06 +02:00
parent 6b0f125be0
commit 5476829893
7 changed files with 20 additions and 21 deletions
+4 -4
View File
@@ -247,12 +247,12 @@ void sub_080281A0(Entity* this) {
bool32 sub_080281E0(u32 param_1) {
bool32 ret = FALSE;
if (GetInventoryValue(param_1) == 1) {
if (ItemIsShield(gSave.stats.itemOnA)) {
gSave.stats.itemOnA = 0;
if (ItemIsShield(gSave.stats.itemButtons[SLOT_A])) {
gSave.stats.itemButtons[SLOT_A] = 0;
}
if (ItemIsShield(gSave.stats.itemOnB)) {
gSave.stats.itemOnB = 0;
if (ItemIsShield(gSave.stats.itemButtons[SLOT_B])) {
gSave.stats.itemButtons[SLOT_B] = 0;
}
sub_0807CAA0(param_1, 0);