summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2025-02-05 07:01:13 +0100
committerStanislaw Halik <sthalik@misaki.pl>2025-02-05 07:01:13 +0100
commit04fc98eaf5985c11a10b7d6b2caf660ec68b4a6c (patch)
treeb09bd9801fc5790c67d55e491933ec4e83f56673
parenta5915629a21406a37b0975134b49fa2208275457 (diff)
fix build on newer imgui
Note that in the imgui inspector code, `WantReloadUserBuf` is necessary to support wrapping around offset/tile/chunk coordinates on continuous press of one of the +- buttons. See original commit fc5ec6178.
-rw-r--r--editor/inspect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/inspect.cpp b/editor/inspect.cpp
index 7302f8bd..f6fcf980 100644
--- a/editor/inspect.cpp
+++ b/editor/inspect.cpp
@@ -187,7 +187,7 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r
{
auto* state = ImGui::GetInputTextState(GImGui->ActiveId);
if (state)
- state->ReloadUserBuf = true;
+ state->WantReloadUserBuf = true;
}
return true;
}