From ddebcd6033f17fdacce954fb26a40b076ec8d400 Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Thu, 18 Jun 2020 17:23:16 -0700 Subject: [PATCH] Fixed airplane rendering --- code/REDALERT/CONQUER.CPP | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/REDALERT/CONQUER.CPP b/code/REDALERT/CONQUER.CPP index b110b37..3f5f763 100644 --- a/code/REDALERT/CONQUER.CPP +++ b/code/REDALERT/CONQUER.CPP @@ -3761,10 +3761,10 @@ void CC_Draw_Shape(void const * shapefile, int shapenum, int x, int y, WindowNum sprintf(tmp, "s%d%d%d%d%d", shapefile, shapenum, rotation, fadingdata, flags); if (flags & SHAPE_FADING) { - shape_image = Image_CreateImageFrom8Bit(tmp, width, height, (unsigned char*)shape_pointer, (unsigned char*)fadingdata); + shape_image = Image_CreateImageFrom8Bit(tmp, width, height, (unsigned char*)buffer, (unsigned char*)fadingdata); } else { - shape_image = Image_CreateImageFrom8Bit(tmp, width, height, (unsigned char*)shape_pointer, NULL); + shape_image = Image_CreateImageFrom8Bit(tmp, width, height, (unsigned char*)buffer, NULL); } }