diff --git a/Qrakhen.Qamp.Core/Values/Ptr.cs b/Qrakhen.Qamp.Core/Values/Ptr.cs index 649eac7..c682e53 100644 --- a/Qrakhen.Qamp.Core/Values/Ptr.cs +++ b/Qrakhen.Qamp.Core/Values/Ptr.cs @@ -1,9 +1,6 @@ using Qrakhen.Qamp.Core.Values.Objects; using System.Runtime.InteropServices; using Qrakhen.Qamp.Core.Collections; -using System.Diagnostics.CodeAnalysis; -using System.Security.Cryptography; -using System.Text; namespace Qrakhen.Qamp.Core.Values; @@ -59,6 +56,8 @@ public readonly struct Ptr byte[] bytes; if (obj is Function function) { bytes = function.Serialize(); + } else if (obj is Context context) { + bytes = context.Function.Serialize(); } else { continue; }