From 59c77bc9df66242a4c2b1bc5816b53147db1505f Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Thu, 13 Feb 2025 15:43:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B2=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=B0=D0=B2=D0=B0=D0=B5=D0=BC=D1=8B=D0=B9=20=D0=BE=D0=B1=D1=8A?= =?UTF-8?q?=D0=B5=D0=BA=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mROA/Implementation/SharedObject.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mROA/Implementation/SharedObject.cs b/mROA/Implementation/SharedObject.cs index ed218d3..d26e22c 100644 --- a/mROA/Implementation/SharedObject.cs +++ b/mROA/Implementation/SharedObject.cs @@ -21,7 +21,13 @@ public class SharedObject where T : notnull "DefaultContextRepository was not defined"); private int _contextId = -1; - public int OwnerId => TransmissionConfig.OwnershipRepository!.GetOwnershipId(); + private int _ownerId = -1; + + public int OwnerId + { + get => _ownerId == -1 ? TransmissionConfig.OwnershipRepository!.GetOwnershipId() : _ownerId; + set => _ownerId = value; + } // ReSharper disable once MemberCanBePrivate.Global public int ContextId