This commit is contained in:
vis2k 2022-04-02 12:29:20 +08:00
parent af9f92713e
commit a93cb61bb0

View File

@ -183,7 +183,7 @@ static int ProcessLoadAddressInstruction(SyncVarAccessLists syncVarAccessLists,
!syncVarAccessLists.replacementGetterProperties.ContainsKey(opField) && // getter
md.Name != NetworkBehaviourProcessor.DeserializeMethodName) // Deserialize
{
Log.Error($"{md.FullName} accesses [SyncVar] {opField.Name} by reference. [REPLACEMENT={replacement.Name}] This is not supported, because [SyncVar]s are internally represented as properties, and C# can not access properties by reference.");
Log.Error($"{md.FullName} accesses [SyncVar] {opField.Name} by reference. This is not supported, because [SyncVar]s are internally represented as properties, and C# can not access properties by reference.");
WeavingFailed = true;
}
}