]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix leaktest
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 14 Sep 2010 19:17:37 +0000 (19:17 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 16 Sep 2010 05:21:33 +0000 (07:21 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10461 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dbba88193908a87435fae15ccf8c28d76f36def7

prvm_edict.c

index 520a2019b6eacb32b53ec335f78a48c4ca2d46c2..b30374f7e1a401b06987ed479ecb49fb99b8fae3 100644 (file)
@@ -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;