Reset cache before emitting each framework event

This commit is contained in:
AzureGem 2020-07-19 11:44:28 -04:00 committed by GitHub
parent 00ee30f0d9
commit ebbd79274b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,7 @@ namespace Dalamud.Game.Internal {
public event OnUpdateDelegate OnUpdateEvent;
private Hook<OnUpdateDetour> updateHook;
private Dalamud dalamud;
/// <summary>
@ -49,6 +50,8 @@ namespace Dalamud.Game.Internal {
#endregion
public Framework(SigScanner scanner, Dalamud dalamud) {
this.dalamud = dalamud;
Address = new FrameworkAddressResolver();
Address.Setup(scanner);
@ -101,6 +104,7 @@ namespace Dalamud.Game.Internal {
private bool HandleFrameworkUpdate(IntPtr framework) {
try {
dalamud.ClientState.Actors.ResetCache();
Gui.Chat.UpdateQueue(this);
Network.UpdateQueue(this);
} catch (Exception ex) {