]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix messed up notification choices settings 318/head
authorterencehill <piuntn@gmail.com>
Sat, 7 May 2016 20:59:09 +0000 (22:59 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 7 May 2016 20:59:09 +0000 (22:59 +0200)
qcsrc/common/notifications/all.qc

index ad2013dfa5b9d214128165e81281e345b868b668..267bd9e66d966b0ae5b586b00d6ab815c8d8c262 100644 (file)
@@ -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)
                );
        });