minor fix

This commit is contained in:
Jare Guo
2016-04-25 17:38:36 +08:00
parent 4fceb870d7
commit 823780ddf6
+1 -1
View File
@@ -60,7 +60,7 @@ var RendererInSG = cc.Class({
if (CC_EDITOR) {
var sgSize = this._sgNode.getContentSize();
// sgSize is not a Vec2 in JSB
if (sgSize.x !== 0 || sgSize.y !== 0) {
if (sgSize.width !== 0 || sgSize.height !== 0) {
cc.error('Renderer error: Size of the cc._RendererInSG._sgNode must be zero');
}
}