diff --git a/source/gui/scripting/JSInterface_IGUIObject.cpp b/source/gui/scripting/JSInterface_IGUIObject.cpp index 2fe1a0fdaf..1ed10f8363 100644 --- a/source/gui/scripting/JSInterface_IGUIObject.cpp +++ b/source/gui/scripting/JSInterface_IGUIObject.cpp @@ -528,7 +528,7 @@ bool JSI_IGUIObject::setProperty(JSContext* cx, JS::HandleObject obj, JS::Handle else if (vp.isObject()) { CColor color; - if (!ScriptInterface::FromJSVal(cx, vp, color) + if (!ScriptInterface::FromJSVal(cx, vp, color)) // Exception has been thrown already return false; GUI::SetSetting(e, propName, color);