]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/notifications.qc
Proper handling of string/float counts for MSG_CHOICE
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / notifications.qc
index 187e2e4807e98b53f1ff79163979298ed3961378..5c5c41e1e49cd4dfe9eb40dc2ef2e60fa42e2a2e 100644 (file)
@@ -813,6 +813,8 @@ void Create_Notification_Entity(
                                                break;
                                        }
                                }
+                               notif.nent_stringcount = max(notif.nent_optiona.nent_stringcount, notif.nent_optionb.nent_stringcount);
+                               notif.nent_floatcount = max(notif.nent_optiona.nent_floatcount, notif.nent_optionb.nent_floatcount);
                        }
                        break;
                }