From: sajt Date: Tue, 9 Oct 2007 21:12:24 +0000 (+0000) Subject: oops X-Git-Tag: xonotic-v0.1.0preview~2861 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e6fa1b717fdebc0b789d4abec69d923397046e33;p=xonotic%2Fdarkplaces.git oops git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7618 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index abb553a5..36cb5dbd 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -1900,6 +1900,7 @@ void VM_strreplace(void) replace_len = (int)strlen(replace); subject_len = (int)strlen(subject); + si = 0; for (i = 0; i < subject_len; i++) { for (j = 0; j < search_len && i+j < subject_len; j++) @@ -1949,6 +1950,7 @@ void VM_strireplace(void) replace_len = (int)strlen(replace); subject_len = (int)strlen(subject); + si = 0; for (i = 0; i < subject_len; i++) { for (j = 0; j < search_len && i+j < subject_len; j++)