Commit 0863038c authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

gui: fix number of dynamics available

parent a562327c
......@@ -2607,7 +2607,7 @@ editor::show_editor() noexcept
model_id new_model = undefined<model_id>();
ImVec2 click_pos = ImGui::GetMousePosOnOpeningCurrentPopup();
for (size_t i = 0, e = std::size(dynamics_type_names); i != e; ++i) {
for (size_t i = 0, e = dynamics_type_size(); i != e; ++i) {
auto ret = add_popup_menuitem(
*this, static_cast<dynamics_type>(i), &new_model);
if (is_bad(ret))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment