From: terencehill Date: Sat, 7 May 2016 20:59:09 +0000 (+0200) Subject: Fix messed up notification choices settings X-Git-Tag: xonotic-v0.8.2~933^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F318%2Fhead;p=xonotic%2Fxonotic-data.pk3dir.git Fix messed up notification choices settings --- diff --git a/qcsrc/common/notifications/all.qc b/qcsrc/common/notifications/all.qc index ad2013dfa..267bd9e66 100644 --- a/qcsrc/common/notifications/all.qc +++ b/qcsrc/common/notifications/all.qc @@ -760,12 +760,11 @@ void Create_Notification_Entity_Choice(entity notif, #ifdef SVQC void Notification_GetCvars() { - int idx = 0; FOREACH(Notifications, it.nent_type == MSG_CHOICE, { GetCvars_handleFloat( get_cvars_s, get_cvars_f, - msg_choice_choices[idx++], + msg_choice_choices[it.nent_choice_idx], sprintf("notification_%s", it.nent_name) ); });