diff options
Diffstat (limited to 'code/cgame')
-rw-r--r-- | code/cgame/cg_weapons.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/code/cgame/cg_weapons.c b/code/cgame/cg_weapons.c index d15de2d..49e2697 100644 --- a/code/cgame/cg_weapons.c +++ b/code/cgame/cg_weapons.c @@ -656,17 +656,17 @@ void CG_RegisterWeapon( int weaponNum ) { } strcpy( path, item->world_model[0] ); - COM_StripExtension( path, path ); + COM_StripExtension(path, path, sizeof(path)); strcat( path, "_flash.md3" ); weaponInfo->flashModel = trap_R_RegisterModel( path ); strcpy( path, item->world_model[0] ); - COM_StripExtension( path, path ); + COM_StripExtension(path, path, sizeof(path)); strcat( path, "_barrel.md3" ); weaponInfo->barrelModel = trap_R_RegisterModel( path ); strcpy( path, item->world_model[0] ); - COM_StripExtension( path, path ); + COM_StripExtension(path, path, sizeof(path)); strcat( path, "_hand.md3" ); weaponInfo->handsModel = trap_R_RegisterModel( path ); |