fix access violation
This commit is contained in:
@@ -78,12 +78,12 @@ public class LightFinderScannerService : DisposableMediatorSubscriberBase
|
|||||||
|
|
||||||
var now = DateTime.UtcNow;
|
var now = DateTime.UtcNow;
|
||||||
|
|
||||||
foreach (var address in _actorTracker.PlayerAddresses)
|
foreach (var descriptor in _actorTracker.PlayerDescriptors)
|
||||||
{
|
{
|
||||||
if (address == nint.Zero)
|
if (string.IsNullOrEmpty(descriptor.HashedContentId))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var cid = DalamudUtilService.GetHashedCIDFromPlayerPointer(address);
|
var cid = descriptor.HashedContentId;
|
||||||
var isStale = !_broadcastCache.TryGetValue(cid, out var entry) || entry.ExpiryTime <= now;
|
var isStale = !_broadcastCache.TryGetValue(cid, out var entry) || entry.ExpiryTime <= now;
|
||||||
|
|
||||||
if (isStale && _lookupQueuedCids.Add(cid) && _lookupQueue.Count < _maxQueueSize)
|
if (isStale && _lookupQueuedCids.Add(cid) && _lookupQueue.Count < _maxQueueSize)
|
||||||
|
|||||||
Reference in New Issue
Block a user