mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-10 12:04:36 -04:00
fix CCArrayExt::pop_back()
ret
variable not being a pointer (#1130)
This commit is contained in:
parent
fd2a457e76
commit
4dcac338f9
1 changed files with 1 additions and 1 deletions
|
@ -1080,7 +1080,7 @@ namespace geode::cocos {
|
|||
}
|
||||
|
||||
T* pop_back() {
|
||||
T ret = m_arr->lastObject();
|
||||
T* ret = static_cast<T*>(m_arr->lastObject());
|
||||
m_arr->removeLastObject();
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue