diff --git a/loader/include/Geode/modify/Field.hpp b/loader/include/Geode/modify/Field.hpp index 32eb1ade..ee0ed13d 100644 --- a/loader/include/Geode/modify/Field.hpp +++ b/loader/include/Geode/modify/Field.hpp @@ -47,11 +47,8 @@ namespace geode::modifier { // Padding used for guaranteeing any member of parents // will be in between sizeof(Intermediate) and sizeof(Parent) uintptr_t m_padding; - static inline std::unordered_map nextIndex; - - static size_t getFieldIndexForClass(size_t hash) { - return nextIndex[hash]++; - } + + GEODE_DLL static size_t getFieldIndexForClass(size_t hash); public: static void fieldConstructor(void* offsetField) {