diff --git a/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp b/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp index 65d8cd7..07c42af 100644 --- a/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp +++ b/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp @@ -432,7 +432,7 @@ bool WorldEditorImGui::tileSelected(ox::Point const&pt) const noexcept { return false; } auto const&sel = *m_selection; - return inside(pt.x, sel.a.x, sel.b.x) && inside(pt.y, sel.a.y, sel.b.y); + return sel.contains(pt); } void WorldEditorImGui::clearSelection() noexcept {