From 3560eb81a1b5e94a7de0c81a74f515c8ed994700 Mon Sep 17 00:00:00 2001 From: aismann Date: Wed, 1 Sep 2021 14:21:41 +0200 Subject: [PATCH] Fix 'Debug 64bit' build error on windows (VS2019) (#1946) Error (active) E0075 operand of '*' must be a pointer but has type "bool" --- spine-cocos2dx/src/spine/SkeletonRenderer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spine-cocos2dx/src/spine/SkeletonRenderer.cpp b/spine-cocos2dx/src/spine/SkeletonRenderer.cpp index 101587770..02e9852d7 100644 --- a/spine-cocos2dx/src/spine/SkeletonRenderer.cpp +++ b/spine-cocos2dx/src/spine/SkeletonRenderer.cpp @@ -189,7 +189,7 @@ namespace spine { SkeletonJson json(_attachmentLoader); json.setScale(scale); SkeletonData *skeletonData = json.readSkeletonDataFile(skeletonDataFile.c_str()); - CCASSERT(skeletonData, !json.getError().isEmpty() ? json.getError().buffer() : "Error reading skeleton data."); + CCASSERT(skeletonData, (!json.getError().isEmpty() ? json.getError().buffer() : "Error reading skeleton data.")); _ownsSkeleton = true; setSkeletonData(skeletonData, true); @@ -206,7 +206,7 @@ namespace spine { SkeletonJson json(_attachmentLoader); json.setScale(scale); SkeletonData *skeletonData = json.readSkeletonDataFile(skeletonDataFile.c_str()); - CCASSERT(skeletonData, !json.getError().isEmpty() ? json.getError().buffer() : "Error reading skeleton data."); + CCASSERT(skeletonData, (!json.getError().isEmpty() ? json.getError().buffer() : "Error reading skeleton data.")); _ownsSkeleton = true; _ownsAtlas = true; @@ -222,7 +222,7 @@ namespace spine { SkeletonBinary binary(_attachmentLoader); binary.setScale(scale); SkeletonData *skeletonData = binary.readSkeletonDataFile(skeletonDataFile.c_str()); - CCASSERT(skeletonData, !binary.getError().isEmpty() ? binary.getError().buffer() : "Error reading skeleton data."); + CCASSERT(skeletonData, (!binary.getError().isEmpty() ? binary.getError().buffer() : "Error reading skeleton data.")); _ownsSkeleton = true; setSkeletonData(skeletonData, true); @@ -238,7 +238,7 @@ namespace spine { SkeletonBinary binary(_attachmentLoader); binary.setScale(scale); SkeletonData *skeletonData = binary.readSkeletonDataFile(skeletonDataFile.c_str()); - CCASSERT(skeletonData, !binary.getError().isEmpty() ? binary.getError().buffer() : "Error reading skeleton data."); + CCASSERT(skeletonData, (!binary.getError().isEmpty() ? binary.getError().buffer() : "Error reading skeleton data.")); _ownsSkeleton = true; _ownsAtlas = true; setSkeletonData(skeletonData, true);