Skip to content

Commit

Permalink
FunctionHook: Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 31, 2024
1 parent f1f5eec commit 635eee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/utility/FunctionHook.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class FunctionHook {
}

auto is_valid() const {
return m_inline_hook->operator bool();
return m_inline_hook && m_inline_hook->operator bool();
}

FunctionHook& operator=(const FunctionHook& other) = delete;
Expand Down

0 comments on commit 635eee1

Please sign in to comment.