diff options
author | Zack Middleton <zturtleman@gmail.com> | 2012-11-18 23:30:26 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 21:24:49 +0000 |
commit | 7a25e48a341c7fafaf71b7d933a94d352b7619a6 (patch) | |
tree | 653b299ee68774efed57e9de1f8757dab259e6d5 /src/client/snd_main.c | |
parent | 23c000eae77da314c6642b3aa9950417690a9407 (diff) |
Remove unneeded name buffer in S_Play_f.
Diffstat (limited to 'src/client/snd_main.c')
-rw-r--r-- | src/client/snd_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/snd_main.c b/src/client/snd_main.c index 5cb206be..1bc9bf21 100644 --- a/src/client/snd_main.c +++ b/src/client/snd_main.c @@ -417,7 +417,6 @@ void S_Play_f( void ) { int i; int c; sfxHandle_t h; - char name[MAX_TOKEN_CHARS]; if( !si.RegisterSound || !si.StartLocalSound ) { return; @@ -431,8 +430,7 @@ void S_Play_f( void ) { } for( i = 1; i < c; i++ ) { - Q_strncpyz( name, Cmd_Argv(i), sizeof(name) ); - h = si.RegisterSound( name, qfalse ); + h = si.RegisterSound( Cmd_Argv(i), qfalse ); if( h ) { si.StartLocalSound( h, CHAN_LOCAL_SOUND ); |