Fix bug in ParseNumberArrayProperty()

Only doubles were being accepted instead of any number (including ordinals)
This commit is contained in:
jrkoonce
2019-08-29 13:56:58 -05:00
parent e7bf47ac8a
commit 176b41d5db

View File

@@ -3217,7 +3217,7 @@ static bool ParseNumberArrayProperty(std::vector<double> *ret, std::string *err,
for (auto i = ArrayBegin(GetValue(it)); i != end;
++i) {
double numberValue;
const bool isNumber = GetDouble(*i, numberValue);
const bool isNumber = GetNumber(*i, numberValue);
if (!isNumber) {
if (required) {
if (err) {