From: Samual Lenks Date: Fri, 8 Feb 2013 23:47:49 +0000 (-0500) Subject: Well that was stupid. X-Git-Tag: xonotic-v0.7.0~62^2~23^2~253 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6f4ad98216ed98f420ded7c5ef60629944945a22;p=xonotic%2Fxonotic-data.pk3dir.git Well that was stupid. --- diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh index d3a93ea0e..298f6eefb 100644 --- a/qcsrc/common/notifications.qh +++ b/qcsrc/common/notifications.qh @@ -132,7 +132,7 @@ void Read_Notification(float is_new); .string nent_strings[4]; .float nent_floats[4]; -#define IFSTR(num) ((num <= (stringcount-1)) ? ...(num, string) : NO_STR_ARG) +#define IFSTR(num) ((num < stringcount) ? ...(num, string) : NO_STR_ARG) #define IFFL(num) ((((stringcount-1) + num) < count) ? ...(((stringcount-1) + num), float) : NO_FL_ARG) void Send_Notification(float broadcast, entity client, float net_type, float net_name, ...count);