summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_weapons.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c
index ecb2499b..671bc4ae 100644
--- a/src/cgame/cg_weapons.c
+++ b/src/cgame/cg_weapons.c
@@ -503,17 +503,17 @@ static qboolean CG_ParseWeaponFile( const char *filename, weaponInfo_t *wi )
CG_Printf( S_COLOR_RED "ERROR: weapon model not found %s\n", token );
strcpy( path, token );
- COM_StripExtension( path, path );
+ COM_StripExtension( path, path, MAX_QPATH );
strcat( path, "_flash.md3" );
wi->flashModel = trap_R_RegisterModel( path );
strcpy( path, token );
- COM_StripExtension( path, path );
+ COM_StripExtension( path, path, MAX_QPATH );
strcat( path, "_barrel.md3" );
wi->barrelModel = trap_R_RegisterModel( path );
strcpy( path, token );
- COM_StripExtension( path, path );
+ COM_StripExtension( path, path, MAX_QPATH );
strcat( path, "_hand.md3" );
wi->handsModel = trap_R_RegisterModel( path );