diff --git a/code/qcommon/files.c b/code/qcommon/files.c index 2630a5cd..5bb91a8f 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -2565,7 +2565,7 @@ qboolean FS_idPak( char *pak, char *base ) { *pakptr = '\0'; for (i = 0; i < NUM_ID_PAKS; i++) { - if ( !FS_FilenameCompare(pak, va("%s/pak%d", base, i)) ) { + if ( !FS_FilenameCompare(pakbuf, va("%s/pak%d", base, i)) ) { break; } }