[csharp] Fixed compile error on e.g. Unity version 2017.1 not supporting 0b111 litterals.

This commit is contained in:
Harald Csaszar 2023-11-17 17:52:59 +01:00
parent b900fdc63c
commit 626e661ecf

View File

@ -431,7 +431,7 @@ namespace Spine {
int flags = input.ReadByte();
string name = (flags & 8) != 0 ? input.ReadStringRef() : attachmentName;
switch ((AttachmentType)(flags & 0b111)) {
switch ((AttachmentType)(flags & 0x7)) { // 0b111
case AttachmentType.Region: {
string path = (flags & 16) != 0 ? input.ReadStringRef() : null;
uint color = (flags & 32) != 0 ? (uint)input.ReadInt() : 0xffffffff;