Quadtree error fix.

This commit is contained in:
Steve 2018-02-11 11:08:32 +00:00
parent 43ef8079fc
commit d75d3ec9cd
1 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ static int getIndex(Quadtree *root, int x, int y, int w, int h)
{
if (topQuadrant)
{
index = 0;
index = 1;
}
else if (bottomQuadrant)
{
@ -163,7 +163,7 @@ static int getIndex(Quadtree *root, int x, int y, int w, int h)
{
if (topQuadrant)
{
index = 1;
index = 0;
}
else if (bottomQuadrant)
{