Skip to content

Commit

Permalink
Remove index from tr
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Aug 1, 2024
1 parent 4a8250a commit af8e15e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ type Record = {
type EntityIndex = { dense: { [i24]: i53 }, sparse: { [i53]: Record } }

type ArchetypeRecord = {
index: number,
count: number,
column: number
}
Expand Down Expand Up @@ -290,7 +289,7 @@ local function archetype_create(world: any, types: { i24 }, prev: Archetype?): A

local records: { ArchetypeRecord } = {}
for i, componentId in types do
local tr = { column = i, count = 1, index = 1 }
local tr = { column = i, count = 1 }
local idr = id_record_ensure(componentIndex, componentId)
idr.cache[id] = tr
idr.size += 1
Expand Down

0 comments on commit af8e15e

Please sign in to comment.