This commit is contained in:
Liza 2024-11-04 16:44:57 +01:00
parent 912a7b04ce
commit fde09c705b
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -86,7 +86,7 @@ public class RegularShopBase
addon->GetSize(&width, &height, true); addon->GetSize(&width, &height, true);
x += width; x += width;
if ((short)_parentWindow.Position!.Value.X != x || (short)_parentWindow.Position!.Value.Y != y) if (_parentWindow.Position is {} position && ((short)position.X != x || (short)position.Y != y))
_parentWindow.Position = new Vector2(x, y); _parentWindow.Position = new Vector2(x, y);
_parentWindow.IsOpen = true; _parentWindow.IsOpen = true;