From 05b530deb76137b4a91aa9efb3354952ab78ce60 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 24 Feb 2024 23:27:42 +0100 Subject: correctly assign chunk coord for region test overlay display --- editor/tests/region-test.cpp | 7 +++++-- 1 file 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, + }; } } -- cgit v1.2.3