From f44cb9fa625449e8f6c001b12ba4296e76397509 Mon Sep 17 00:00:00 2001 From: Sven Eberhardt Date: Mon, 6 Jun 2016 23:26:20 -0400 Subject: [PATCH] Qt Editor: Fix script errors on empty selection --- src/editor/C4ConsoleQtPropListViewer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/C4ConsoleQtPropListViewer.cpp b/src/editor/C4ConsoleQtPropListViewer.cpp index a37368ab3..94330717b 100644 --- a/src/editor/C4ConsoleQtPropListViewer.cpp +++ b/src/editor/C4ConsoleQtPropListViewer.cpp @@ -93,6 +93,7 @@ void C4PropertyPath::SetProperty(const C4Value &to_val) const C4Value C4PropertyPath::ResolveValue() const { + if (!path.getLength()) return C4VNull; return AulExec.DirectExec(::ScriptEngine.GetPropList(), path.getData(), "resolve property", false, nullptr); }