summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-24 23:27:42 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-24 23:27:42 +0100
commit05b530deb76137b4a91aa9efb3354952ab78ce60 (patch)
tree73d90214a1a38f4107716d5e469e2d9ebdd17b2a
parent58c94ce5b5ff5074ebb336559f9d35f738476c89 (diff)
correctly assign chunk coord for region test overlay display
-rw-r--r--editor/tests/region-test.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/editor/tests/region-test.cpp b/editor/tests/region-test.cpp
index ab270383..fa6a5ed3 100644
--- a/editor/tests/region-test.cpp
+++ b/editor/tests/region-test.cpp
@@ -159,8 +159,11 @@ void region_test::do_region_extraction(world& w, chunk_coords_ coord)
{
chunk::pass_region r;
c->make_pass_region(r);
- result.is_passable = r.bits;
- result.exists = true;
+ result = {
+ .is_passable = r.bits,
+ .c = coord,
+ .exists = true,
+ };
}
}