summaryrefslogtreecommitdiff
path: root/src/field/battle_tower.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-11-04 21:44:50 -0400
committerProjectRevoTPP <projectrevotpp@hotmail.com>2017-11-04 21:44:50 -0400
commit003d16e7a178e440c41f2bca365bf8f8f2a60b0e (patch)
tree2976739dd7cb4460a276192a5878071209a3e5b4 /src/field/battle_tower.c
parent5b9043daceda790ec5f48938c2d7487e261af9a5 (diff)
finish first wave of fixes
Diffstat (limited to 'src/field/battle_tower.c')
-rw-r--r--src/field/battle_tower.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/field/battle_tower.c b/src/field/battle_tower.c
index 06d692eae..1b5759f49 100644
--- a/src/field/battle_tower.c
+++ b/src/field/battle_tower.c
@@ -1370,7 +1370,7 @@ void FillBattleTowerTrainerParty(void)
}
SetMonData(&gEnemyParty[partyIndex], MON_DATA_FRIENDSHIP, &friendship);
- SetMonData(&gEnemyParty[partyIndex], MON_DATA_HELD_ITEM, (u8 *)&sBattleTowerHeldItems[battleTowerMons[battleMonIndex].heldItem]);
+ SetMonData(&gEnemyParty[partyIndex], MON_DATA_HELD_ITEM, &sBattleTowerHeldItems[battleTowerMons[battleMonIndex].heldItem]);
// The pokemon was successfully added to the trainer's party, so it's safe to move on to
// the next party slot.
@@ -1589,7 +1589,7 @@ void sub_81354CC(void)
for (i = 0; i < PARTY_SIZE; i++)
{
heldItem = GetMonData(&gSaveBlock1.playerParty[i], MON_DATA_HELD_ITEM);
- SetMonData(&gPlayerParty[i], MON_DATA_HELD_ITEM, (u8 *)&heldItem);
+ SetMonData(&gPlayerParty[i], MON_DATA_HELD_ITEM, &heldItem);
}
break;
case 2:
@@ -1633,7 +1633,7 @@ void sub_813556C(void)
for (i = 0; i < PARTY_SIZE; i++)
{
heldItem = GetMonData(&gPlayerParty[i], MON_DATA_HELD_ITEM);
- SetMonData(&gSaveBlock1.playerParty[i], MON_DATA_HELD_ITEM, (u8 *)&heldItem);
+ SetMonData(&gSaveBlock1.playerParty[i], MON_DATA_HELD_ITEM, &heldItem);
}
CreateTask(sub_8135534, 1);
@@ -2185,7 +2185,7 @@ void AwardBattleTowerRibbons(void)
if (!GetMonData(pokemon, ribbonType))
{
gScriptResult = 1;
- SetMonData(pokemon, ribbonType, (u8 *)&gScriptResult);
+ SetMonData(pokemon, ribbonType, &gScriptResult);
}
}
}