mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Fix bad merge
This commit is contained in:
parent
b7dda599fb
commit
cc91916574
2 changed files with 4 additions and 6 deletions
|
|
@ -9,8 +9,6 @@ using Dalamud.Plugin.Services;
|
|||
|
||||
using CSBuddy = FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy;
|
||||
using CSUIState = FFXIVClientStructs.FFXIV.Client.Game.UI.UIState;
|
||||
|
||||
using CSBuddy = FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy;
|
||||
using CSBuddyMember = FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy.BuddyMember;
|
||||
|
||||
namespace Dalamud.Game.ClientState.Buddy;
|
||||
|
|
@ -74,7 +72,7 @@ internal sealed partial class BuddyList : IServiceType, IBuddyList
|
|||
}
|
||||
}
|
||||
|
||||
private unsafe CSBuddy* BuddyListStruct => &UIState.Instance()->Buddy;
|
||||
private unsafe CSBuddy* BuddyListStruct => &CSUIState.Instance()->Buddy;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public IBuddyMember? this[int index]
|
||||
|
|
@ -113,7 +111,7 @@ internal sealed partial class BuddyList : IServiceType, IBuddyList
|
|||
if (address == 0)
|
||||
return null;
|
||||
|
||||
if (this.clientState.LocalContentId == 0)
|
||||
if (this.playerState.ContentId == 0)
|
||||
return null;
|
||||
|
||||
var buddy = new BuddyMember((CSBuddyMember*)address);
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ internal sealed unsafe partial class PartyList : IServiceType, IPartyList
|
|||
/// <inheritdoc/>
|
||||
public IPartyMember? CreatePartyMemberReference(nint address)
|
||||
{
|
||||
if (this.clientState.LocalContentId == 0)
|
||||
if (this.playerState.ContentId == 0)
|
||||
return null;
|
||||
|
||||
if (address == 0)
|
||||
|
|
@ -114,7 +114,7 @@ internal sealed unsafe partial class PartyList : IServiceType, IPartyList
|
|||
/// <inheritdoc/>
|
||||
public IPartyMember? CreateAllianceMemberReference(nint address)
|
||||
{
|
||||
if (this.clientState.LocalContentId == 0)
|
||||
if (this.playerState.ContentId == 0)
|
||||
return null;
|
||||
|
||||
if (address == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue