Refactor InitStateHandlers so each key in the reset combo is checked

This commit is contained in:
PokeCodec
2020-09-04 10:18:32 -04:00
parent 3d87a88067
commit 99448002e1
3 changed files with 12 additions and 19 deletions
+1 -2
View File
@@ -2044,8 +2044,7 @@ void sub_80110B8(u32 a0)
if ((r8 >> i) & 1)
{
child_sprite_genders |= ((0x80 | ((gLinkPlayers[Rfu.linkPlayerIdx[i]].gender & 1) << 3) | (gLinkPlayers[Rfu.linkPlayerIdx[i]].trainerId & 7)) << (numConnectedChildren << 3));
numConnectedChildren++;
if (numConnectedChildren == a0 - 1)
if (++numConnectedChildren == a0 - 1)
break;
}
}