From 45bdf87dac5624af9bb4582dcb3a7c5d5545fa6d Mon Sep 17 00:00:00 2001 From: John Date: Sun, 11 Jun 2017 02:37:03 +0800 Subject: [PATCH] [csharp] readonly VertexAttachment.id --- spine-csharp/src/Attachments/VertexAttachment.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-csharp/src/Attachments/VertexAttachment.cs b/spine-csharp/src/Attachments/VertexAttachment.cs index 08e6994e2..a7efaeb3d 100644 --- a/spine-csharp/src/Attachments/VertexAttachment.cs +++ b/spine-csharp/src/Attachments/VertexAttachment.cs @@ -35,7 +35,7 @@ namespace Spine { public class VertexAttachment : Attachment { static int nextID = 0; - internal int id = (nextID++ & 65535) << 11; + internal readonly int id = (nextID++ & 65535) << 11; internal int[] bones; internal float[] vertices; internal int worldVerticesLength;