mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 05:13:40 +01:00
UiDebug2 Misc Fixes (#2273)
* Fix incorrect type check * Fix address calculation
This commit is contained in:
parent
15352a3e23
commit
43ab6f6f63
2 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ internal unsafe partial class ResNodeTree : IDisposable
|
||||||
/// <returns>An existing or newly-created instance of <see cref="ResNodeTree"/>.</returns>
|
/// <returns>An existing or newly-created instance of <see cref="ResNodeTree"/>.</returns>
|
||||||
internal static ResNodeTree GetOrCreate(AtkResNode* node, AddonTree addonTree) =>
|
internal static ResNodeTree GetOrCreate(AtkResNode* node, AddonTree addonTree) =>
|
||||||
addonTree.NodeTrees.TryGetValue((nint)node, out var nodeTree) ? nodeTree
|
addonTree.NodeTrees.TryGetValue((nint)node, out var nodeTree) ? nodeTree
|
||||||
: (int)node->Type > 1000
|
: (int)node->Type >= 1000
|
||||||
? new ComponentNodeTree(node, addonTree)
|
? new ComponentNodeTree(node, addonTree)
|
||||||
: node->Type switch
|
: node->Type switch
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ public readonly unsafe partial struct TimelineTree
|
||||||
{
|
{
|
||||||
var animation = this.Resource->Animations[a];
|
var animation = this.Resource->Animations[a];
|
||||||
var isActive = this.ActiveAnimation != null && &animation == this.ActiveAnimation;
|
var isActive = this.ActiveAnimation != null && &animation == this.ActiveAnimation;
|
||||||
this.PrintAnimation(animation, a, isActive, (nint)(this.NodeTimeline->Resource->Animations + (a * sizeof(AtkTimelineAnimation))));
|
this.PrintAnimation(animation, a, isActive, (nint)(this.NodeTimeline->Resource->Animations + a));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue