fix(DTR): also null check NodeList

This commit is contained in:
goaaats 2022-02-02 21:46:16 +01:00
parent 3909bbc104
commit 360ae5a572
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -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;