diff options
| -rw-r--r-- | src/editor.cpp | 4 |
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"); |
