fix loading bar switch loading method issue

This commit is contained in:
andyque 2014-07-15 17:03:35 +08:00
parent 19da7e8075
commit 714048059c
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ UILoadingBarTest_Editor::~UILoadingBarTest_Editor()
void UILoadingBarTest_Editor::switchLoadMethod(cocos2d::Ref *pSender)
{
MenuItemToggle *item = (MenuItemToggle*)pSender;
_count = 0;
if (item->getSelectedIndex() == 0){
_layout->removeFromParentAndCleanup(true);