issue #4541: s_globalOrderOfArrival is an static variable of Node class.

This commit is contained in:
James Chen 2014-03-25 15:07:11 +08:00
parent 9a8cf6d813
commit 45b98e7dc0
2 changed files with 3 additions and 1 deletions

View File

@ -72,7 +72,7 @@ bool nodeComparisonLess(Node* n1, Node* n2)
}
// XXX: Yes, nodes might have a sort problem once every 15 days if the game runs at 60 FPS and each frame sprites are reordered.
static int s_globalOrderOfArrival = 1;
int Node::s_globalOrderOfArrival = 1;
Node::Node(void)
: _rotationX(0.0f)

View File

@ -1452,6 +1452,8 @@ protected:
bool _cascadeColorEnabled;
bool _cascadeOpacityEnabled;
static int s_globalOrderOfArrival;
private:
CC_DISALLOW_COPY_AND_ASSIGN(Node);
};