From a3ecc099aa0048ad0068a41c3e20cd3c463e09f4 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 1 Feb 2025 23:31:16 +0500 Subject: fix: wrong tile type identification --- src/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/editor.cpp') diff --git a/src/editor.cpp b/src/editor.cpp index 97979fb..1929f7f 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -72,9 +72,9 @@ namespace silly::editor { if (this->selectedTile.has_value()) { TilesetTile *t = this->selectedTile->get(); - if (t->id == TILE_FLOOR) { + if (t->type == TILE_FLOOR) { ImGui::Text("FLOOR"); - } else if (t->id == TILE_WALL) { + } else if (t->type == TILE_WALL) { ImGui::Text("WALL"); } else { ImGui::Text("UNKNOWN"); -- cgit v1.2.3