Skip to content

Commit

Permalink
fix(vt): colour_map not initializing
Browse files Browse the repository at this point in the history
  • Loading branch information
GwnDaan committed Dec 14, 2023
1 parent 799b88d commit ca329f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/object_pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub mod reader;
pub mod writer;

pub mod object;
mod object_attributes;
pub mod object_attributes;
mod object_id;
mod object_pool;
mod object_type;
Expand Down
4 changes: 2 additions & 2 deletions src/object_pool/object_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ impl ObjectPool {
pub fn new() -> Self {
// Setup the default colour map
let mut colour_map = [0xFFu8; 256];
for i in 0..(colour_map.len() as u8) {
colour_map[i as usize] = i;
for i in 0..colour_map.len() {
colour_map[i] = i as u8;
}

ObjectPool {
Expand Down

0 comments on commit ca329f0

Please sign in to comment.