fix CCArrayExt::pop_back() ret variable not being a pointer (#1130)
Some checks failed
Build Binaries / Build Windows (push) Has been cancelled
Build Binaries / Build macOS (push) Has been cancelled
Build Binaries / Build Android (64-bit) (push) Has been cancelled
Build Binaries / Build Android (32-bit) (push) Has been cancelled
Build Binaries / Publish (push) Has been cancelled

This commit is contained in:
Henry Spheria 2024-11-02 23:52:12 +07:00 committed by GitHub
parent fd2a457e76
commit 4dcac338f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}