From 3dd940cc0a9f985f7c7520f5064840cf7a25d5c9 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 2 Oct 2025 10:45:09 -0400 Subject: pke: use explicit bucket on input set --- editor/editor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'editor') diff --git a/editor/editor.cpp b/editor/editor.cpp index 8445b3f..df5724c 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -2264,7 +2264,8 @@ void PkeEditor_Init() { pke_input_set debugControlsSet{}; debugControlsSet.title = "debug-editor-controls"; debugControlsSet.actionCount = 14; - debugControlsSet.actions = pk_new_arr(debugControlsSet.actionCount); + debugControlsSet.bkt = pkeSettings.mem_bkt.game; + debugControlsSet.actions = pk_new_arr(debugControlsSet.actionCount, debugControlsSet.bkt); debugControlsSet.flags = PKE_INPUT_ACTION_SET_FLAG_DO_NOT_SERIALIZE; debugControlsSet.actions[0].name = dbgCtrl_CameraLeft; @@ -2337,7 +2338,7 @@ void PkeEditor_Init() { .button = GLFW_KEY_F1, }; - debugControlsHandle = pke_input_register_set(debugControlsSet); + debugControlsHandle = pke_input_register_set(std::move(debugControlsSet)); btTransform trfm{}; trfm.setIdentity(); -- cgit v1.2.3