fix field crash

This commit is contained in:
HJfod 2023-07-30 22:21:17 +03:00
parent 8c567a57fd
commit e3e72cabf3

View file

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