summaryrefslogtreecommitdiffhomepage
path: root/editor/tests/raycast-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/tests/raycast-test.cpp')
-rw-r--r--editor/tests/raycast-test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp
index 1abffa72..ca51ef82 100644
--- a/editor/tests/raycast-test.cpp
+++ b/editor/tests/raycast-test.cpp
@@ -121,7 +121,7 @@ auto get_chunk_neighbors(class world& w, chunk_coords_ ch)
chunk_neighbors nbs;
for (int j = 0; j < 3; j++)
for (int i = 0; i < 3; i++)
- nbs.array[i][j] = w.at(ch - Vector2i(i - 1, j - 1));
+ nbs.array[i][j] = w.at(ch + Vector2i(i - 1, j - 1));
return nbs;
}