mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge branch 'net5' of ssh://github.com/goatcorp/Dalamud into net5
This commit is contained in:
commit
c4d1880e05
1 changed files with 10 additions and 2 deletions
|
|
@ -408,8 +408,16 @@ namespace Dalamud.Game.Gui
|
||||||
return IntPtr.Zero;
|
return IntPtr.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
var agent = agentModule->GetAgentByInternalID(id);
|
// Patch 6.1, 398 agents
|
||||||
return (IntPtr)agent;
|
for (var i = 0; i < 398; i++)
|
||||||
|
{
|
||||||
|
var agent = &agentModule->AgentArray[i];
|
||||||
|
|
||||||
|
if (agent->AddonId == id)
|
||||||
|
return new IntPtr(agent);
|
||||||
|
}
|
||||||
|
|
||||||
|
return IntPtr.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue