Standarized use of star in void and struct pointers
This commit is contained in:
@@ -5401,7 +5401,7 @@ static void Cmd_updatebattlermoves(void)
|
||||
if (gBattleControllerExecFlags == 0)
|
||||
{
|
||||
s32 i;
|
||||
struct BattlePokemon *bufferPoke = (struct BattlePokemon*) &gBattleBufferB[gActiveBattler][4];
|
||||
struct BattlePokemon *bufferPoke = (struct BattlePokemon *) &gBattleBufferB[gActiveBattler][4];
|
||||
for (i = 0; i < MAX_MON_MOVES; i++)
|
||||
{
|
||||
gBattleMons[gActiveBattler].moves[i] = bufferPoke->moves[i];
|
||||
@@ -7675,7 +7675,7 @@ static void Cmd_painsplitdmgcalc(void)
|
||||
{
|
||||
s32 hpDiff = (gBattleMons[gBattlerAttacker].hp + gBattleMons[gBattlerTarget].hp) / 2;
|
||||
s32 painSplitHp = gBattleMoveDamage = gBattleMons[gBattlerTarget].hp - hpDiff;
|
||||
u8 *storeLoc = (void*)(&gBattleScripting.painSplitHp);
|
||||
u8 *storeLoc = (void *)(&gBattleScripting.painSplitHp);
|
||||
|
||||
storeLoc[0] = (painSplitHp);
|
||||
storeLoc[1] = (painSplitHp & 0x0000FF00) >> 8;
|
||||
|
||||
Reference in New Issue
Block a user