From: Samual Lenks Date: Wed, 21 Aug 2013 23:25:59 +0000 (-0400) Subject: Proper handling of string/float counts for MSG_CHOICE X-Git-Tag: xonotic-v0.8.0~341^2~27 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9456b62fd98f143c4674e13253207a2d43784f48;p=xonotic%2Fxonotic-data.pk3dir.git Proper handling of string/float counts for MSG_CHOICE --- diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 187e2e480..5c5c41e1e 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -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; }