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 c54ce03..435e8d5 100644 --- a/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp +++ b/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp @@ -90,7 +90,7 @@ constexpr studio::Selection fbPtToTileAddr( [[nodiscard]] constexpr bool inside(auto const val, int const min, int const max) noexcept { auto const v = static_cast(val); - return v < max && v > min; + return v <= max && v >= min; }; WorldEditorImGui::WorldEditorImGui(studio::StudioContext &sctx, ox::StringView path):