Fix uninitialized xColor value when converting script value

This commit is contained in:
Ryan Huffman 2015-12-03 09:52:56 -08:00
parent 65334659ae
commit 667d2b728e

View file

@ -257,7 +257,7 @@ inline glmQuat glmQuat_convertFromScriptValue(const QScriptValue& v, bool& isVal
}
inline xColor xColor_convertFromScriptValue(const QScriptValue& v, bool& isValid) {
xColor newValue;
xColor newValue { 255, 255, 255 };
isValid = false; /// assume it can't be converted
QScriptValue r = v.property("red");
QScriptValue g = v.property("green");