summaryrefslogtreecommitdiffhomepage
path: root/editor/inspect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/inspect.cpp')
-rw-r--r--editor/inspect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/inspect.cpp b/editor/inspect.cpp
index 82514cc9..0c45251b 100644
--- a/editor/inspect.cpp
+++ b/editor/inspect.cpp
@@ -155,7 +155,7 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r
ret = ImGui::SliderScalarN(label, igdt, &value, T::Size, &min, &max);
break;
}
- for (std::size_t i = 0; i < T::Size; i++)
+ for (auto i = 0_uz; i < T::Size; i++)
value[i] = std::clamp(value[i], min[i], max[i]);
}