mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6520 from boyu0/set_value_asbool_return_false_default
Change Value::asBool() return false by default.
This commit is contained in:
commit
03d10e8926
|
@ -559,7 +559,7 @@ bool Value::asBool() const
|
|||
return _baseData.doubleVal == 0.0 ? false : true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string Value::asString() const
|
||||
|
|
Loading…
Reference in New Issue