Browse Source

improve code

tags/Rel25a
sebas77 6 years ago
parent
commit
a62a3c8dd2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Svelto.ECS/EGID.cs

+ 1
- 1
Svelto.ECS/EGID.cs View File

@@ -33,7 +33,7 @@ namespace Svelto.ECS

static long MAKE_GLOBAL_ID(int entityId, int groupId)
{
return (long)groupId << 32 | (uint)entityId;
return (long)groupId << 32 | (((long)(uint)entityId) & 0xFFFFFFFF);
}
}
}

Loading…
Cancel
Save