Skip to content

Commit

Permalink
Fixed Collision Detection Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rdappel authored Mar 28, 2017
1 parent 2e27514 commit fa8a485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpaceFighter/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ void Level::UpdateSectorPosition(GameObject *pGameObject)
{
for (int y = minY; y <= maxY; y++)
{
int index = y * (int)m_sectorCount.Y + x;
int index = y * (int)m_sectorCount.X + x;

m_pSectors[index].push_back(pGameObject);
}
}
}
}

0 comments on commit fa8a485

Please sign in to comment.