mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
"Index: overflow" Error beseitigt
This commit is contained in:
parent
71d8526080
commit
f60b40b4a3
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ int SV_FindIndex (char *name, int start, int max, qboolean create)
|
|||
if (i == max)
|
||||
Com_Error (ERR_DROP, "*Index: overflow");
|
||||
|
||||
strncpy (sv.configstrings[start+i], name, sizeof(sv.configstrings[i]-1));
|
||||
strncpy (sv.configstrings[start+i], name, sizeof(sv.configstrings[i]));
|
||||
|
||||
if (sv.state != ss_loading)
|
||||
{ // send the update to everyone
|
||||
|
|
Loading…
Reference in a new issue