summaryrefslogtreecommitdiff
path: root/src/editor.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-02-01 23:31:16 +0500
committerilotterytea <iltsu@alright.party>2025-02-01 23:31:16 +0500
commita3ecc099aa0048ad0068a41c3e20cd3c463e09f4 (patch)
tree8e3c8b047f614f20b02d8727e9a13c4eb089e5cc /src/editor.cpp
parent8b515204de68d67f59410cc9c9c38855df7ce283 (diff)
fix: wrong tile type identification
Diffstat (limited to 'src/editor.cpp')
-rw-r--r--src/editor.cpp4
1 files changed, 2 insertions, 2 deletions
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");