From e3e72cabf31bb060b8e48c09f46165531dee63b6 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Sun, 30 Jul 2023 22:21:17 +0300 Subject: [PATCH] fix field crash --- loader/include/Geode/modify/Field.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }