From 31fdab187cae340a418f4b1bdbf7956c9d465711 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sun, 23 Apr 2006 20:04:42 +0000 Subject: [PATCH] Fix didn't work yet because it didn't use the buffer where the filename extension chop-off is done. D'oh! --- code/qcommon/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }