From 62f7a4f9db988a522a534224f14127afb9c49ba5 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 17 Mar 2004 04:40:48 +0000 Subject: * Fixed a fuckup with the game->cgame (don't ask) particle system listing code --- src/game/g_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/g_main.c b/src/game/g_main.c index 37cd9a01..fcbeb7cf 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -426,11 +426,11 @@ the client does not have trap_FS_GetFileList static void G_GenerateParticleFileList( void ) { int i, numFiles, fileLen; - char fileList[ MAX_PARTICLE_FILES ]; + char fileList[ MAX_PARTICLE_FILES * MAX_QPATH ]; char fileName[ MAX_QPATH ]; char *filePtr; - numFiles = trap_FS_GetFileList( "scripts", ".particle", fileList, 1024 ); + numFiles = trap_FS_GetFileList( "scripts", ".particle", fileList, MAX_PARTICLE_FILES * MAX_QPATH ); filePtr = fileList; for( i = 0; i < numFiles; i++, filePtr += fileLen + 1 ) -- cgit