--- a/src/prep.c +++ b/src/prep.c @@ -723,7 +723,7 @@ // First check if the player has unwittingly disabled all weapons // if so, enable all weapons bool allDisabled = true; - for (int i = 0, j = 0; i < (int)gData->allowed.size; i++, j++) + for (int i = 0; i < (int)gData->allowed.size; i++) { const bool *allowed = CArrayGet(&gData->allowed, i); if (*allowed) --- a/src/prep_equip.c +++ b/src/prep_equip.c @@ -200,12 +200,11 @@ if (pData->waitResult == EVENT_WAIT_OK) { - for (int i = 0, idx = 0; i < (int)gPlayerDatas.size; i++, idx++) + for (int i = 0; i < (int)gPlayerDatas.size; i++) { const PlayerData *p = CArrayGet(&gPlayerDatas, i); if (!p->IsLocal) { - idx--; continue; } NPlayerData pd = NMakePlayerData(p);