tile_data := calloc(200 * sizeof TileData);
defer cfree(tile_data);
- tile_data_arena := alloc.arena.make(tile_data, 200 * sizeof TileData);
- tile_allocator := alloc.arena.make_allocator(^tile_data_arena);
+ // This ring allocator could technically overflow and start
+ // allocating memory that isn't technically free, but there
+ // should be more than enough space in the allocator to not
+ // run into that problem... Hopefully.
+ tile_data_ring := alloc.ring.make(tile_data, 200 * sizeof TileData);
+ tile_allocator := alloc.ring.make_allocator(^tile_data_ring);
while !reader.empty(^file) {
reader.read_word(^file); // 'Tile '