Get rid of redundant cast
This commit is contained in:
+1
-1
@@ -5463,7 +5463,7 @@ u16 GetEvolutionTargetSpecies(struct Pokemon *mon, u8 type, u16 evolutionItem)
|
|||||||
if (gEvolutionTable[species][i].param == heldItem)
|
if (gEvolutionTable[species][i].param == heldItem)
|
||||||
{
|
{
|
||||||
heldItem = 0;
|
heldItem = 0;
|
||||||
SetMonData(mon, MON_DATA_HELD_ITEM, (u8 *)&heldItem);
|
SetMonData(mon, MON_DATA_HELD_ITEM, &heldItem);
|
||||||
targetSpecies = gEvolutionTable[species][i].targetSpecies;
|
targetSpecies = gEvolutionTable[species][i].targetSpecies;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user