]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
make DP compile with C++ again
[xonotic/darkplaces.git] / sv_user.c
index 882418c6706c8c676ce0bbdcf72c49bb32b99092..ffa9c3997fee92ff26fe757446c59bf5e45484a1 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -854,7 +854,7 @@ clc_stringcmd_invalid:
                                                int crc;
                                                unsigned char *temp;
                                                FS_Seek(host_client->download_file, 0, SEEK_SET);
-                                               temp = Mem_Alloc(tempmempool, size);
+                                               temp = (unsigned char *) Mem_Alloc(tempmempool, size);
                                                FS_Read(host_client->download_file, temp, size);
                                                crc = CRC_Block(temp, size);
                                                Mem_Free(temp);