Skip to content

Commit

Permalink
UObjectHook: Fix and unify disable behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Nov 16, 2024
1 parent 1a810f6 commit 5cc4235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/mods/UObjectHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1807,8 +1807,7 @@ UObjectHook::ResolvedObject UObjectHook::StatePath::resolve() const {

void UObjectHook::on_frame() {
if (m_keybind_toggle_uobject_hook->is_key_down_once()) {
m_uobject_hook_disabled = !m_uobject_hook_disabled;
m_fixed_visibilities = false;
set_disabled(!is_disabled());
}
}

Expand Down
1 change: 1 addition & 0 deletions src/mods/UObjectHook.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class UObjectHook : public Mod {

void set_disabled(bool disabled) {
m_uobject_hook_disabled = disabled;
m_fixed_visibilities = false;
}

protected:
Expand Down

0 comments on commit 5cc4235

Please sign in to comment.