]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 14 Sep 2010 19:17:37 +0000 (19:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10461 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index 092ef0667ef84cb0f191376c417114cfd8642c7d..793b75e21ff59775a78e2440b3c224648ca4c3f5 100644 (file)
@@ -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;