Qt Editor: Fix script errors on empty selection

qteditor
Sven Eberhardt 2016-06-06 23:26:20 -04:00
parent 16e31098b4
commit f44cb9fa62
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}