mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix(DTR): also null check NodeList
This commit is contained in:
parent
3909bbc104
commit
360ae5a572
1 changed files with 1 additions and 0 deletions
|
|
@ -131,6 +131,7 @@ namespace Dalamud.Game.Gui.Dtr
|
|||
this.entries.RemoveAll(d => d.ShouldBeRemoved);
|
||||
|
||||
// The collision node on the DTR element is always the width of its content
|
||||
if (dtr->UldManager.NodeList == null) return;
|
||||
var collisionNode = dtr->UldManager.NodeList[1];
|
||||
if (collisionNode == null) return;
|
||||
var runningXPos = collisionNode->X;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue