]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_sprite.c
make DP compile with C++ again
[xonotic/darkplaces.git] / model_sprite.c
index 0c27bc21801f886e2073289942ed0dc977f59e0c..926ea606aa00bda659c4141c6b4c7e8a91d11e5f 100644 (file)
@@ -192,7 +192,7 @@ static void Mod_Sprite_SharedSetup(const unsigned char *datapointer, int version
                                        }
                                        if (!(skinframe = R_SkinFrame_LoadExternal(name, texflags | TEXF_COMPRESS, false)))
                                        {
-                                               unsigned char *pixels = Mem_Alloc(loadmodel->mempool, width*height*4);
+                                               unsigned char *pixels = (unsigned char *) Mem_Alloc(loadmodel->mempool, width*height*4);
                                                if (version == SPRITE32_VERSION)
                                                {
                                                        for (x = 0;x < width*height;x++)