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 7301f5f..37aaeb4 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;