COCOS2DX 3.0 CCPoint BUG??

CCPoint:getDistance(CCPoint(0, 0), CCPoint(0, 0))

in function ‘getDistance’ argument #1 is ‘class CCPoint’; ‘const CCPoint’ expected

why? thanks

oh …. I fix it

local function ccpDistance(pt1,pt2)
deprecatedTip(“ccpDistance”,“CCPoint:getDistance”)
return pt1:getDistance(pt2)
end
rawset(_G,“ccpDistance”,ccpDistance)

this is a code in Deprecated.lua

the tip message “CCPoint:getDistance” is wrong

“CCPoint.getDistance” is right

change : to .

another method:
CCPoint(0,0):getDistance(CCPoint(0, 0))