diff options
Diffstat (limited to 'editor/editor.cpp')
| -rw-r--r-- | editor/editor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<pke_input_action>(debugControlsSet.actionCount); + debugControlsSet.bkt = pkeSettings.mem_bkt.game; + debugControlsSet.actions = pk_new_arr<pke_input_action>(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(); |
