From eadb1b14bd2d8880464b710119b563db860783ed Mon Sep 17 00:00:00 2001 From: alk <45172705+altalk23@users.noreply.github.com> Date: Sat, 3 Dec 2022 16:49:48 +0300 Subject: [PATCH] Move getFieldIndexForClass outside of header --- loader/include/Geode/modify/Field.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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) {