]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
ARGH, that really was a STUPID bug.
authorRudolf Polzer <divverent@xonotic.org>
Sun, 13 Oct 2013 01:21:45 +0000 (03:21 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 13 Oct 2013 01:23:00 +0000 (03:23 +0200)
qcsrc/menu/item/textslider.c

index 7301f5f16eab521c71104c6d321e1d492f732659..37aaeb4ab1dda7c4cf7b7493f4293a27e907c393 100644 (file)
@@ -62,8 +62,10 @@ void TextSlider_insertValue(entity me, float pos, string theString, string theId
 {
        float i;
        for (i = me.nValues; i > pos; --i)
+       {
                me.(valueStrings[i]) = me.(valueStrings[i-1]);
                me.(valueIdentifiers[i]) = me.(valueIdentifiers[i-1]);
+       }
        me.(valueStrings[pos]) = theString;
        me.(valueIdentifiers[pos]) = theIdentifier;
        me.nValues += 1;