diff --git a/loader/include/Geode/utils/cocos.hpp b/loader/include/Geode/utils/cocos.hpp index f6800f79..29d67d97 100644 --- a/loader/include/Geode/utils/cocos.hpp +++ b/loader/include/Geode/utils/cocos.hpp @@ -1080,7 +1080,7 @@ namespace geode::cocos { } T* pop_back() { - T ret = m_arr->lastObject(); + T* ret = static_cast(m_arr->lastObject()); m_arr->removeLastObject(); return ret; }