decline-cookies / anvil-unity-dots

Unity DOTS and ECS specific additions and extensions to Anvil
MIT License
4 stars 1 forks source link

FloodSetComponentJob - Fix start index #227

Closed mbaker3 closed 1 year ago

mbaker3 commented 1 year ago

Fix bug in FloodSetComponentJob where it would offset its pointer into random memory when there was more than one chunk.

What is the current behaviour?

FloodSetComponentJob will set memory unrelated to the target component/chunk if there is more than one chunk present.

What is the new behaviour?

We correctly offset the pointer to the start of the target component block in the chunk. We should not have been using firstEntityIndex

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?