Skip to content

Commit

Permalink
fix: statics in PapyrusRegistrationHook
Browse files Browse the repository at this point in the history
  • Loading branch information
Deweh committed Jul 24, 2024
1 parent d6b71f3 commit 03d1c17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SFSE/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ namespace SFSE
}
}

inline static bool allocated{ false };
static call_t func;
static std::function<void(RE::BSScript::IVirtualMachine**)> callback;
Trampoline trampoline;
inline static bool allocated{ false };
inline static call_t func;
inline static std::function<void(RE::BSScript::IVirtualMachine**)> callback;
Trampoline trampoline;
};

void SetPapyrusCallback(const std::function<void(RE::BSScript::IVirtualMachine**)> a_callback, bool a_trySFSEReserve)
Expand Down

0 comments on commit 03d1c17

Please sign in to comment.