From: Rudolf Polzer Date: Thu, 12 Apr 2012 15:14:40 +0000 (+0200) Subject: oops, this was broken X-Git-Tag: xonotic-v0.7.0~16^2~2 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=d005d46d649f10944db6dc8e754c479726c3d703;p=xonotic%2Fnetradiant.git oops, this was broken --- diff --git a/tools/quake3/q3map2/image.c b/tools/quake3/q3map2/image.c index ad782124..8ac3c6ce 100644 --- a/tools/quake3/q3map2/image.c +++ b/tools/quake3/q3map2/image.c @@ -167,9 +167,9 @@ static void LoadPNGBuffer( byte *buffer, int size, byte **pixels, int *width, in } /* set read callback */ - pb->buffer = buffer; - pb->size = size; - pb->offset = 0; + pb.buffer = buffer; + pb.size = size; + pb.offset = 0; png_set_read_fn( png, &pb, PNGReadData ); //png->io_ptr = &pb; /* hack! */