Fixed error in CZ2 saving

This commit is contained in:
G2-Games 2024-05-05 05:20:25 -05:00
parent b42e1ca1d6
commit 14360b9464

View file

@ -119,7 +119,7 @@ impl CzImage for Cz2Image {
fn save_as_png(&self, name: &str) -> Result<(), image::error::ImageError> {
let img = image::RgbaImage::from_raw(
self.header.width() as u32 - 1,
self.header.width() as u32,
self.header.height() as u32,
self.bitmap.clone(),
).unwrap();