mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15472 from mogemimi/fix-deprecation-warning
Fix deprecation warning caused by PageView::getPages()
This commit is contained in:
commit
6b262a55cb
|
@ -329,7 +329,7 @@ Vector<Layout*>& PageView::getPages()
|
|||
|
||||
Layout* PageView::getPage(ssize_t index)
|
||||
{
|
||||
if (index < 0 || index >= this->getPages().size())
|
||||
if (index < 0 || index >= this->getItems().size())
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue