diff --git a/LightlessSync/Services/DalamudUtilService.cs b/LightlessSync/Services/DalamudUtilService.cs index c8668eb..b7958db 100644 --- a/LightlessSync/Services/DalamudUtilService.cs +++ b/LightlessSync/Services/DalamudUtilService.cs @@ -490,6 +490,10 @@ public class DalamudUtilService : IHostedService, IMediatorSubscriber { EnsureIsOnFramework(); var playerChar = GetPlayerCharacter(); + + if (playerChar == null || playerChar.Address == IntPtr.Zero) + return 0; + return ((BattleChara*)playerChar.Address)->Character.ContentId; }