Skip to content

Commit

Permalink
Use vfunc call instead of hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MidoriKami committed Sep 10, 2023
1 parent 6921139 commit f1c8201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dalamud/Game/Gui/Dtr/DtrBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private void OnAddonDrawDetour(AtkUnitBase* addon)
addon->SetX((short)(addon->GetX() - sizeDelta));

// force a RequestedUpdate immediately to force the game to right-justify it immediately.
this.onAddonRequestedUpdateHook.Original(addon, AtkStage.GetSingleton()->GetNumberArrayData(), AtkStage.GetSingleton()->GetStringArrayData());
addon->OnUpdate(AtkStage.GetSingleton()->GetNumberArrayData(), AtkStage.GetSingleton()->GetStringArrayData());
}
}
}
Expand Down

0 comments on commit f1c8201

Please sign in to comment.