diff --git a/loader/include/Geode/modify/Field.hpp b/loader/include/Geode/modify/Field.hpp index f9374022..7a140f7d 100644 --- a/loader/include/Geode/modify/Field.hpp +++ b/loader/include/Geode/modify/Field.hpp @@ -31,7 +31,7 @@ namespace geode::modifier { } void* getField(size_t index) { - if (m_containedFields.size() <= index) { + while (m_containedFields.size() <= index) { m_containedFields.push_back(nullptr); m_destructorFunctions.push_back(nullptr); }