From 5e5d88ed8eacbe5dc1117380658a8081344df40f Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sat, 3 Dec 2022 15:43:52 +0200 Subject: [PATCH] Fix input actions/axis lookups to not use StringView The stored strings might point to temporary strings, causing garbage data to be present in the dictionary at times. --- Source/Engine/Input/Input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Input/Input.cpp b/Source/Engine/Input/Input.cpp index 91bde0625..51f1831f0 100644 --- a/Source/Engine/Input/Input.cpp +++ b/Source/Engine/Input/Input.cpp @@ -55,8 +55,8 @@ struct AxisData namespace InputImpl { - Dictionary Actions; - Dictionary Axes; + Dictionary Actions; + Dictionary Axes; bool GamepadsChanged = true; Array AxesValues; InputDevice::EventQueue InputEvents;