From a22302e2ee00cbbfc5958281d39a4183c3d75fae Mon Sep 17 00:00:00 2001 From: mogemimi Date: Sat, 4 Jun 2016 21:17:53 +0900 Subject: [PATCH] Fix unused parameter warning when compiling CCArray --- cocos/deprecated/CCArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/deprecated/CCArray.cpp b/cocos/deprecated/CCArray.cpp index 15e7cec104..2f394bdd49 100644 --- a/cocos/deprecated/CCArray.cpp +++ b/cocos/deprecated/CCArray.cpp @@ -695,7 +695,7 @@ void __Array::exchangeObjectAtIndex(ssize_t index1, ssize_t index2) void __Array::replaceObjectAtIndex(ssize_t index, Ref* object, bool releaseObject/* = true*/) { ccArrayInsertObjectAtIndex(data, object, index); - ccArrayRemoveObjectAtIndex(data, index + 1); + ccArrayRemoveObjectAtIndex(data, index + 1, releaseObject); } void __Array::reverseObjects()