mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
fix: use old structs in ContextMenuReaderWriter
This commit is contained in:
parent
3b4b9784fb
commit
5b588962c1
1 changed files with 1 additions and 1 deletions
|
|
@ -456,7 +456,7 @@ namespace Dalamud.Game.Gui.ContextMenus
|
||||||
var redButtonActions = &((OldAgentContext*)this.agentContextInterface)->Items->RedButtonActions;
|
var redButtonActions = &((OldAgentContext*)this.agentContextInterface)->Items->RedButtonActions;
|
||||||
*(redButtonActions + contextMenuItemIndex) = action;
|
*(redButtonActions + contextMenuItemIndex) = action;
|
||||||
}
|
}
|
||||||
else if (((AgentContext*)this.agentContextInterface)->Items != null)
|
else if (((OldAgentContext*)this.agentContextInterface)->Items != null)
|
||||||
{
|
{
|
||||||
// TODO: figure out why this branch is reached on inventory contexts and why Items is sometimes null.
|
// TODO: figure out why this branch is reached on inventory contexts and why Items is sometimes null.
|
||||||
var actions = &((OldAgentContext*)this.agentContextInterface)->Items->Actions;
|
var actions = &((OldAgentContext*)this.agentContextInterface)->Items->Actions;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue