From: divverent Date: Tue, 14 Sep 2010 19:17:37 +0000 (+0000) Subject: fix leaktest X-Git-Tag: xonotic-v0.1.0preview~230^2~23 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dbba88193908a87435fae15ccf8c28d76f36def7;p=xonotic%2Fdarkplaces.git fix leaktest git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10461 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_edict.c b/prvm_edict.c index 092ef066..793b75e2 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -3233,7 +3233,7 @@ void PRVM_LeakTest(void) if(prog->knownstrings[i]) if(prog->knownstrings_freeable[i]) if(prog->knownstrings_origin[i]) - if(!PRVM_IsStringReferenced(-1 - i)) + if(!PRVM_IsStringReferenced(PRVM_KNOWNSTRINGBASE + i)) { Con_Printf("Unreferenced string found!\n Value: %s\n Origin: %s\n", prog->knownstrings[i], prog->knownstrings_origin[i]); leaked = true;