From 8530e0d4be8f680dda27138b1bcbc35f0fad6d26 Mon Sep 17 00:00:00 2001 From: ne0ndrag0n Date: Sun, 14 Feb 2021 11:03:32 -0500 Subject: [PATCH] Fix bug in palette exporter --- src/reskit/tileset.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reskit/tileset.rs b/src/reskit/tileset.rs index 2ec1624..91e5acd 100644 --- a/src/reskit/tileset.rs +++ b/src/reskit/tileset.rs @@ -71,7 +71,7 @@ pub fn generate( image_filename: &str, output_filename: &str ) { let mut output_palette: Vec< u8 > = Vec::new(); for i in 0..palette.len() { let bytes = palette[ i ].to_be_bytes(); - for i in 0..4 { + for i in 0..2 { output_palette.push( bytes[ i ] ); } }