File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -861,7 +861,7 @@ bool PrepareBattleGraphicsMaybe(void)
861861{
862862 u16 i ;
863863 u16 pid , jid ;
864- int zero ;
864+ void * zero ;
865865 struct Unit * unit_bu1 ;
866866 struct Unit * unit_bu2 ;
867867 struct BattleUnit * bu1 ;
@@ -873,7 +873,7 @@ bool PrepareBattleGraphicsMaybe(void)
873873 const void * animdef2 ;
874874 s16 valid_l ;
875875 s16 valid_r ;
876- int animid1 , animid2 ;
876+ u32 animid1 , animid2 ;
877877
878878 int char_cnt = 1 ;
879879
@@ -904,7 +904,6 @@ bool PrepareBattleGraphicsMaybe(void)
904904 }
905905 else
906906 {
907- int pos ;
908907 u8 i1 = -0x40 & gBattleActor .unit .index ;
909908 u16 faction1 = GetBanimFactionPalette (i1 );
910909 u8 i2 = -0x40 & gBattleTarget .unit .index ;
@@ -1304,7 +1303,7 @@ bool PrepareBattleGraphicsMaybe(void)
13041303 gBanimEffectiveness [POS_R ] = IsItemEffectiveAgainst (bu2 -> weapon , unit_bu1 );
13051304 }
13061305
1307- gBanimForceUnitChgDebug [POS_L ] = gBanimForceUnitChgDebug [POS_R ] = ( void * ) zero = 0 ;
1306+ gBanimForceUnitChgDebug [POS_L ] = gBanimForceUnitChgDebug [POS_R ] = zero = 0 ;
13081307
13091308 if (valid_l )
13101309 (void )GetItemIndex (bu1 -> weaponBefore );
@@ -1318,7 +1317,7 @@ bool PrepareBattleGraphicsMaybe(void)
13181317 }
13191318 else
13201319 {
1321- gBanimUniquePaletteDisabled [POS_L ] = gBanimUniquePaletteDisabled [POS_R ] = zero ;
1320+ gBanimUniquePaletteDisabled [POS_L ] = gBanimUniquePaletteDisabled [POS_R ] = 0 ;
13221321 }
13231322
13241323 ++ zero ; -- zero ; // :/
You can’t perform that action at this time.
0 commit comments