diff --git a/d1x-rebirth/main/custom.cpp b/d1x-rebirth/main/custom.cpp index 720174600..5c9c920a4 100644 --- a/d1x-rebirth/main/custom.cpp +++ b/d1x-rebirth/main/custom.cpp @@ -316,7 +316,7 @@ static int load_pigpog(const char *pogname) } GameBitmapOffset[x] = 0; // not in pig - memset(bmp, 0, sizeof(*bmp)); + *bmp = {}; gr_init_bitmap (bmp, 0, 0, 0, cip->width, cip->height, cip->width, p); gr_set_bitmap_flags(bmp, cip->flags & 255); bmp->avg_color = cip->flags >> 8;