We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84b763e commit 15511c2Copy full SHA for 15511c2
NWN.Anvil/src/main/API/Objects/NwObject.cs
@@ -385,7 +385,7 @@ public async Task WaitForObjectContext()
385
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]
386
protected void AssertObjectValid()
387
{
388
- if (LowLevel.ServerExoApp.GetGameObject(ObjectId) == null)
+ if (LowLevel.ServerExoApp.GetGameObject(ObjectId)?.Pointer != Object.Pointer)
389
390
throw new InvalidOperationException("Object is not valid.");
391
}
0 commit comments