diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-07 13:46:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-07 13:46:50 +0200 |
commit | 5eddf0d8166cfdb106b34cc0ad62aaf045473382 (patch) | |
tree | 73e15a634b530950cfcee8aac387b99b5a7c32f0 /editor/tests | |
parent | c5438e160fa261ba58699e96d2d3ef79618a6ba1 (diff) |
d
Diffstat (limited to 'editor/tests')
-rw-r--r-- | editor/tests/region-test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/tests/region-test.cpp b/editor/tests/region-test.cpp index 9826845f..484ea5e0 100644 --- a/editor/tests/region-test.cpp +++ b/editor/tests/region-test.cpp @@ -156,9 +156,9 @@ void region_test::do_region_extraction(app& a, chunk_coords_ coord) auto C = a.ensure_player_character(w).ptr; if (auto* c = w.at(coord)) { - Vector2i C_coord[] = { Vector2i(C->coord.local()) * iTILE_SIZE2 + Vector2i(C->offset) }; + auto C_coord = Vector2i{ Vector2i(C->coord.local()) * iTILE_SIZE2 + Vector2i(C->offset) }; result = { - .region = c->make_pass_region(true, C_coord), + .region = c->make_pass_region(true, {&C_coord, 1}), .c = coord, .exists = true, }; |