From 2b1511096ee76bfd30be699bec2047a7a2857bd2 Mon Sep 17 00:00:00 2001 From: zhangcheng Date: Tue, 16 Feb 2016 17:01:54 +0800 Subject: [PATCH] Fix ValueVector read type error. --- cocos/platform/apple/CCFileUtils-apple.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocos/platform/apple/CCFileUtils-apple.mm b/cocos/platform/apple/CCFileUtils-apple.mm index f34306c0ca..789fc39a60 100644 --- a/cocos/platform/apple/CCFileUtils-apple.mm +++ b/cocos/platform/apple/CCFileUtils-apple.mm @@ -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) {