]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix rank indexes
authorRudolf Polzer <divverent@xonotic.org>
Mon, 14 Jan 2013 09:55:44 +0000 (10:55 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 14 Jan 2013 09:55:44 +0000 (10:55 +0100)
qcsrc/server/scores.qc

index 06f25e41adfff58b336986613fddf3c97f14663f..c2307ad3756208e08b7329ce90e7c2c8712a004a 100644 (file)
@@ -725,7 +725,7 @@ entity PlayerScore_Sort(.float field, float strict)
                if(!plast || PlayerTeamScore_Compare(plast, pbest, 0))
                        j = i;
 
-               pbest.field = ++i;
+               pbest.field = j;
 
                if not(pfirst)
                        pfirst = pbest;