Fix packet leak

Credit: @nag0L
This commit is contained in:
Voxpire 2026-08-04 22:28:46 +01:00 committed by GitHub
parent 6fd0185584
commit d76bf4443c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6881,8 +6881,11 @@ namespace Server
if (state.Mobile.CanSee(this))
{
state.Mobile.ProcessDelta();
p = Packet.Acquire(new NewMobileAnimation(this, type, action, Utility.Random(0, 60)));
if (p == null)
{
p = Packet.Acquire(new NewMobileAnimation(this, type, action, Utility.Random(0, 60)));
}
state.Send(p);
}