diff options
author | Thakee Nathees <thakeenathees@gmail.com> | 2020-03-19 07:21:43 +0530 |
---|---|---|
committer | Thakee Nathees <thakeenathees@gmail.com> | 2020-03-19 19:13:19 +0530 |
commit | 76fd073f58ffda4df032ca111db663e96ac0a7fb (patch) | |
tree | 9f0c57b11e1e266f3d9ebf2bc9a8f49d11e72d89 | |
parent | cf50ee4fa4f6a254a4706d4afa0adf10311a5ffb (diff) |
stop game process with KEY_F8 crash fixed
Fix: #37121
-rw-r--r-- | editor/debugger/script_editor_debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp index d7c0c3d2bf..dcb1611f71 100644 --- a/editor/debugger/script_editor_debugger.cpp +++ b/editor/debugger/script_editor_debugger.cpp @@ -810,7 +810,7 @@ void ScriptEditorDebugger::_notification(int p_what) { const uint64_t until = OS::get_singleton()->get_ticks_msec() + 20; - while (peer->has_message()) { + while (peer.is_valid() && peer->has_message()) { Array arr = peer->get_message(); if (arr.size() != 2 || arr[0].get_type() != Variant::STRING || arr[1].get_type() != Variant::ARRAY) { |