summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2004-03-17 04:40:48 +0000
committerTim Angus <tim@ngus.net>2004-03-17 04:40:48 +0000
commit62f7a4f9db988a522a534224f14127afb9c49ba5 (patch)
tree53a5bf304ce288ce68bc372f304e9a8056c178c5 /src
parent08fa53ab87e9510c714f18c5a4b52eb99599a377 (diff)
* Fixed a fuckup with the game->cgame (don't ask) particle system listing code
Diffstat (limited to 'src')
-rw-r--r--src/game/g_main.c4
1 files changed, 2 insertions, 2 deletions
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 )