From: Rudolf Polzer Date: Sun, 13 Oct 2013 01:21:45 +0000 (+0200) Subject: ARGH, that really was a STUPID bug. X-Git-Tag: xonotic-v0.8.0~286 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d78465c6c312c59742e0222f19a718969c0b1a99;p=xonotic%2Fxonotic-data.pk3dir.git ARGH, that really was a STUPID bug. --- diff --git a/qcsrc/menu/item/textslider.c b/qcsrc/menu/item/textslider.c index 7301f5f16..37aaeb4ab 100644 --- a/qcsrc/menu/item/textslider.c +++ b/qcsrc/menu/item/textslider.c @@ -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;