From: divverent Date: Tue, 14 Sep 2010 19:17:37 +0000 (+0000) Subject: fix leaktest X-Git-Tag: xonotic-v0.1.0preview~232 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a8ec40694ba06bb11144464ddf5482087f04e6dd;p=xonotic%2Fdarkplaces.git fix leaktest git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10461 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=dbba88193908a87435fae15ccf8c28d76f36def7 --- diff --git a/prvm_edict.c b/prvm_edict.c index 520a2019..b30374f7 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -3231,7 +3231,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;