Quadtree error fix.
This commit is contained in:
parent
43ef8079fc
commit
d75d3ec9cd
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue