diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2021-07-11 14:26:18 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2021-09-01 16:46:04 +0100 |
commit | d18686233868d81b0c22d554714c4171cf83a509 (patch) | |
tree | c1fe0158277b8192d5f561062f550901fe2aeb1c /core/input/input_map.cpp | |
parent | 55a20129d691691aa811dd0820f70e56560d35c7 (diff) | |
download | redot-engine-d18686233868d81b0c22d554714c4171cf83a509.tar.gz |
Fix InputMap and display server not nulling singleton on free
Diffstat (limited to 'core/input/input_map.cpp')
-rw-r--r-- | core/input/input_map.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp index c7ca65f61a..ebab1d12fd 100644 --- a/core/input/input_map.cpp +++ b/core/input/input_map.cpp @@ -746,3 +746,7 @@ InputMap::InputMap() { ERR_FAIL_COND_MSG(singleton, "Singleton in InputMap already exist."); singleton = this; } + +InputMap::~InputMap() { + singleton = nullptr; +} |