mirror of https://github.com/axmolengine/axmol.git
Fix ValueVector read type error.
This commit is contained in:
parent
53cbc2d32b
commit
2b1511096e
|
@ -60,7 +60,8 @@ static void addItemToArray(id item, ValueVector& array)
|
|||
const char* numType = [num objCType];
|
||||
if(num == (void*)kCFBooleanFalse || num == (void*)kCFBooleanTrue)
|
||||
{
|
||||
array.push_back(Value([num boolValue]));
|
||||
bool v = [num boolValue];
|
||||
array.push_back(Value(v));
|
||||
}
|
||||
else if(strcmp(numType, @encode(float)) == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue