Skip to content

Commit 33c70df

Browse files
authored
Merge pull request #49 from apple1417/master
make `inject_next_call` use thread local state
2 parents bc22de8 + c2a4d9f commit 33c70df

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Upcoming
4+
- `unrealsdk::hook_manager::inject_next_call` is now thread local.
5+
6+
[427c8734](https://github.com/bl-sdk/unrealsdk/commit/427c8734)
7+
38
## v1.4.0
49
- Fixed that UE3 `WeakPointer`s would always return null, due to an incorrect offset in the
510
`UObject` header layout.

src/unrealsdk/hook_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct List {
8686

8787
namespace {
8888

89-
bool should_inject_next_call = false;
89+
thread_local bool should_inject_next_call = false;
9090

9191
bool should_log_all_calls = false;
9292
std::unique_ptr<std::wostream> log_all_calls_stream;

0 commit comments

Comments
 (0)