Fix minor mistake that lead to extra ships being rendered

This commit is contained in:
Barra Ó Catháin 2023-11-18 22:17:27 +00:00
parent 161f877834
commit 5fea20ff9d
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ int main(int argc, char ** argv)
{
continue;
}
if (state->playerStates[playerNumber].inPlay == true)
if (state->playerStates[index].inPlay == true)
{
shipRectangles[index].x = ((long)(state->playerStates[index].position.xComponent -
state->playerStates[playerNumber].position.xComponent) -