Skip to content

Commit

Permalink
*fixed error logging for invalid page index
Browse files Browse the repository at this point in the history
  • Loading branch information
moadib committed Oct 17, 2011
1 parent e7aeb8a commit 6f62fe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/CCScrollLayer/CCScrollLayer.cpp
Expand Up @@ -175,7 +175,7 @@ namespace cocos2d
{
if (pageNumber >= m_pLayers->count())
{
CCLOGERROR("CCScrollLayer::moveToPage: %d - wrong page number, out of bounds.", page);
CCLOGERROR("CCScrollLayer::moveToPage: %d - wrong page number, out of bounds.", pageNumber);
return;
}

Expand All @@ -192,7 +192,7 @@ namespace cocos2d
{
if (pageNumber >= m_pLayers->count())
{
CCLOGERROR("CCScrollLayer::selectPage: %d - wrong page number, out of bounds.", page);
CCLOGERROR("CCScrollLayer::selectPage: %d - wrong page number, out of bounds.", pageNumber);
return;
}

Expand Down

0 comments on commit 6f62fe3

Please sign in to comment.