1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Fix editor crash on exit

This commit is contained in:
Fredia Huya-Kouadio
2025-11-08 10:52:57 -08:00
parent 6fd949a6dc
commit 8c469be225
2 changed files with 11 additions and 3 deletions

View File

@@ -35,7 +35,7 @@
#include "editor/editor_node.h"
#include "editor/run/game_view_plugin.h"
static GameViewPlugin *_get_game_view_plugin() {
_FORCE_INLINE_ static GameViewPlugin *_get_game_view_plugin() {
ERR_FAIL_NULL_V(EditorNode::get_singleton(), nullptr);
ERR_FAIL_NULL_V(EditorNode::get_singleton()->get_editor_main_screen(), nullptr);
return Object::cast_to<GameViewPlugin>(EditorNode::get_singleton()->get_editor_main_screen()->get_plugin_by_name("Game"));