Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/2022.7.22'
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopotam committed Jul 22, 2022
2 parents f237756 + be7e8c6 commit 44e783c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "LeoECS",
"description": "LeoECS - легковесный ECS-фреймворк, основанный на структурах. Производительность, нулевые или минимальные аллокации, минимизация использования памяти, отсутствие зависимостей от любого игрового движка - это основные цели данного фреймворка.",
"unity": "2020.3",
"version": "2022.4.22",
"version": "2022.7.22",
"keywords": [
"leoecs",
"ecs",
Expand Down
2 changes: 1 addition & 1 deletion src/EcsWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public struct EcsEntityData {
[MethodImpl (MethodImplOptions.AggressiveInlining)]
public EcsComponentPool<T> GetPool<T> () where T : struct {
var typeIdx = EcsComponentType<T>.TypeIndex;
if (ComponentPools.Length < typeIdx) {
if (ComponentPools.Length <= typeIdx) {
var len = ComponentPools.Length << 1;
while (len <= typeIdx) {
len <<= 1;
Expand Down

0 comments on commit 44e783c

Please sign in to comment.