diff --git a/NativeFunc.hpp b/NativeFunc.hpp index b278325..02bb7e7 100644 --- a/NativeFunc.hpp +++ b/NativeFunc.hpp @@ -115,8 +115,8 @@ class NativeFuncBase cell* params_; - static std::list* - all_; + static inline std::list* + all_ = nullptr; }; template diff --git a/NativesMain.hpp b/NativesMain.hpp index 3f744f5..75f1cb6 100644 --- a/NativesMain.hpp +++ b/NativesMain.hpp @@ -4,13 +4,8 @@ namespace pawn_natives { -#ifdef PAWN_NATIVES_HAS_FUNC -std::list* - NativeFuncBase::all_ - = 0; -#endif -int AmxLoad(AMX* amx) +inline int AmxLoad(AMX* amx) { int ret