]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Proper handling of string/float counts for MSG_CHOICE
authorSamual Lenks <samual@xonotic.org>
Wed, 21 Aug 2013 23:25:59 +0000 (19:25 -0400)
committerSamual Lenks <samual@xonotic.org>
Wed, 21 Aug 2013 23:25:59 +0000 (19:25 -0400)
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;
                }