From e00cb6cc6a5752754ebd34cef518208395822109 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Wed, 11 Jan 2023 12:38:59 +0100 Subject: [PATCH] Fix renderflags offset for redrawing. --- Penumbra/Interop/ObjectReloader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Penumbra/Interop/ObjectReloader.cs b/Penumbra/Interop/ObjectReloader.cs index 36415696..da96af5b 100644 --- a/Penumbra/Interop/ObjectReloader.cs +++ b/Penumbra/Interop/ObjectReloader.cs @@ -117,7 +117,7 @@ public sealed unsafe partial class ObjectReloader : IDisposable => Dalamud.Framework.Update -= OnUpdateEvent; public static DrawState* ActorDrawState( GameObject actor ) - => ( DrawState* )( actor.Address + 0x0104 ); + => ( DrawState* )( &( ( FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject* )actor.Address )->RenderFlags ); private static int ObjectTableIndex( GameObject actor ) => ( ( FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject* )actor.Address )->ObjectIndex;