From d10992951b961626feb5e0129cb931786d025db8 Mon Sep 17 00:00:00 2001 From: "Daniel T. Borelli" Date: Sat, 4 Jan 2014 02:22:09 -0300 Subject: [PATCH] fix bad name variable --- cocos/2d/CCDirector.cpp | 8 ++++---- cocos/2d/CCDirector.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cocos/2d/CCDirector.cpp b/cocos/2d/CCDirector.cpp index 097d89b433..95c6788426 100644 --- a/cocos/2d/CCDirector.cpp +++ b/cocos/2d/CCDirector.cpp @@ -132,7 +132,7 @@ bool Director::init(void) _paused = false; // purge ? - _purgeDirecotorInNextLoop = false; + _purgeDirectorInNextLoop = false; _winSizeInPoints = Size::ZERO; @@ -718,7 +718,7 @@ void Director::popToSceneStackLevel(int level) void Director::end() { - _purgeDirecotorInNextLoop = true; + _purgeDirectorInNextLoop = true; } void Director::purgeDirector() @@ -1077,9 +1077,9 @@ void DisplayLinkDirector::startAnimation() void DisplayLinkDirector::mainLoop() { - if (_purgeDirecotorInNextLoop) + if (_purgeDirectorInNextLoop) { - _purgeDirecotorInNextLoop = false; + _purgeDirectorInNextLoop = false; purgeDirector(); } else if (! _invalid) diff --git a/cocos/2d/CCDirector.h b/cocos/2d/CCDirector.h index b2204e7146..b8d73b02a1 100644 --- a/cocos/2d/CCDirector.h +++ b/cocos/2d/CCDirector.h @@ -392,7 +392,7 @@ public: protected: void purgeDirector(); - bool _purgeDirecotorInNextLoop; // this flag will be set to true in end() + bool _purgeDirectorInNextLoop; // this flag will be set to true in end() void setNextScene();