]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
fix a bunch of type-punned pointer warnings
[xonotic/darkplaces.git] / console.c
index 36fe15ce7dd65839d1f8b6d397ba114be47e05af..560f770e0324a63c4077b58187e2abea032d2841 100644 (file)
--- a/console.c
+++ b/console.c
@@ -1899,7 +1899,7 @@ qboolean GetMapList (const char *s, char *completedname, int completednamebuffer
                                        lumplen = LittleLong(header->lumps[Q2LUMP_ENTITIES].filelen);
                                }
                        }
-                       else if((p = LittleLong(((int *)buf)[0])) == BSPVERSION || p == 30)
+                       else if((p = BuffLittleLong(buf)) == BSPVERSION || p == 30)
                        {
                                dheader_t *header = (dheader_t *)buf;
                                lumpofs = LittleLong(header->lumps[LUMP_ENTITIES].fileofs);