From 3370445a2e22ee00687ecef2e9dc88f47bb2b4c6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 23 Dec 2023 14:42:15 +0100 Subject: a --- editor/wall-editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/wall-editor.cpp') diff --git a/editor/wall-editor.cpp b/editor/wall-editor.cpp index d1bcd650..b2dce5fe 100644 --- a/editor/wall-editor.cpp +++ b/editor/wall-editor.cpp @@ -76,8 +76,8 @@ void wall_editor::place_tile(world& w, global_coords coords, const std::shared_p auto [c, t] = w[coords]; switch (_r) { - case rotation::N: t.wall_north() = { atlas, (uint8_t)-1 }; break; - case rotation::W: t.wall_west() = { atlas, (uint8_t)-1 }; break; + case rotation::N: t.wall_north() = { atlas, (variant_t)-1 }; break; + case rotation::W: t.wall_west() = { atlas, (variant_t)-1 }; break; default: std::unreachable(); } c.mark_walls_modified(); -- cgit v1.2.3