Input sanitation for Debug Locals (#2505)

This commit is contained in:
gir489 2023-12-12 03:19:51 -05:00 committed by GitHub
parent 1869389606
commit 3b9413db92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,8 +229,12 @@ namespace big
ImGui::PushItemWidth(200.f);
if (ImGui::InputScalar("VIEW_DEBUG_LOCALS_LOCAL"_T.data(), ImGuiDataType_U16, &local_test.local_index))
ImGui::InputScalar("VIEW_DEBUG_LOCALS_LOCAL"_T.data(), ImGuiDataType_U16, &local_test.local_index);
if (local_thread)
local_laddie = script_local(local_thread, local_test.local_index);
else
local_laddie = script_local(local_test.local_index);
for (int i = 0; i < local_test.local_appendages.size(); i++)
{