From a8ec40694ba06bb11144464ddf5482087f04e6dd Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 14 Sep 2010 19:17:37 +0000 Subject: [PATCH] fix leaktest git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10461 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=dbba88193908a87435fae15ccf8c28d76f36def7 --- prvm_edict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2