From 7155eb4ebbd0d49793b2d962ce4be6d5dcd40218 Mon Sep 17 00:00:00 2001 From: minggo Date: Tue, 24 Jun 2014 18:23:10 +0800 Subject: [PATCH] use reference instead --- cocos/2d/CCSprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCSprite.cpp b/cocos/2d/CCSprite.cpp index c616626f13..489a386a71 100644 --- a/cocos/2d/CCSprite.cpp +++ b/cocos/2d/CCSprite.cpp @@ -530,7 +530,7 @@ void Sprite::updateTransform(void) // calculate the Quad based on the Affine Matrix // - Size size = _rect.size; + Size &size = _rect.size; float x1 = _offsetPosition.x; float y1 = _offsetPosition.y;