diff --git a/src/client/refresh/soft/sw_image.c b/src/client/refresh/soft/sw_image.c index c24cbebf..cb1430af 100644 --- a/src/client/refresh/soft/sw_image.c +++ b/src/client/refresh/soft/sw_image.c @@ -122,14 +122,15 @@ R_LoadPic (char *name, byte *pic, int width, int height, imagetype_t type) image->transparent = false; for (i=0 ; itransparent = true; - image->pixels[0][i] = b; + break; + } } + memcpy(image->pixels[0], pic, c); + return image; }