From a62a3c8dd222bc02584692b2f36a633cb87fc87f Mon Sep 17 00:00:00 2001 From: sebas77 Date: Sat, 26 May 2018 20:00:51 +0100 Subject: [PATCH] improve code --- Svelto.ECS/EGID.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Svelto.ECS/EGID.cs b/Svelto.ECS/EGID.cs index a7e4197..7f1e385 100644 --- a/Svelto.ECS/EGID.cs +++ b/Svelto.ECS/EGID.cs @@ -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); } } } \ No newline at end of file