[Debugger] Fix scene debugger crash when editor shortcuts are invalid
This commit is contained in:
parent
a372214a4a
commit
a8caad3437
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ void SceneDebugger::deinitialize() {
|
|||
#ifdef DEBUG_ENABLED
|
||||
void SceneDebugger::_handle_input(const Ref<InputEvent> &p_event, const Ref<Shortcut> &p_shortcut) {
|
||||
Ref<InputEventKey> k = p_event;
|
||||
if (k.is_valid() && k->is_pressed() && !k->is_echo() && p_shortcut->matches_event(k)) {
|
||||
if (p_shortcut.is_valid() && k.is_valid() && k->is_pressed() && !k->is_echo() && p_shortcut->matches_event(k)) {
|
||||
EngineDebugger::get_singleton()->send_message("request_quit", Array());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue