anax
anax copied to clipboard
Entity::ID::Value()
I think there is mistake in value() member. It shifts counter by COUNTER_BIT_COUNT, but I believe you want to shift it by INDEX_BIT_COUNT
so instead of return (counter << ANAX_ENTITY_ID_COUNTER_BIT_COUNT) | index; it should be return (counter << ANAX_ENTITY_ID_INDEX_BIT_COUNT) | index;
Nice catch, I think you're correct.