From c774e864a0a7c79eb6183ddf1b95b1ed33b8bb79 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 24 Oct 2017 18:39:05 +0300 Subject: [PATCH] Remove some dead assignments --- code/Bitmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Bitmap.cpp b/code/Bitmap.cpp index b1cf8a409..76994513e 100644 --- a/code/Bitmap.cpp +++ b/code/Bitmap.cpp @@ -102,7 +102,7 @@ namespace Assimp { offset += Copy(&data[offset], header.size); offset += Copy(&data[offset], header.reserved1); offset += Copy(&data[offset], header.reserved2); - offset += Copy(&data[offset], header.offset); + Copy(&data[offset], header.offset); file->Write(data, Header::header_size, 1); } @@ -122,7 +122,7 @@ namespace Assimp { offset += Copy(&data[offset], dib.x_resolution); offset += Copy(&data[offset], dib.y_resolution); offset += Copy(&data[offset], dib.nb_colors); - offset += Copy(&data[offset], dib.nb_important_colors); + Copy(&data[offset], dib.nb_important_colors); file->Write(data, DIB::dib_size, 1); }