mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 03:15:38 -05:00
fix field crash
This commit is contained in:
parent
8c567a57fd
commit
e3e72cabf3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue