From 8617956d6634f1032a4c8f9a107b9d60935aa535 Mon Sep 17 00:00:00 2001 From: asmodai Date: Wed, 12 Oct 2016 02:14:13 +0300 Subject: [PATCH] Fixed compilation by ICC on windows Fixed 'Broadcast' function --- reapi/src/member_list.cpp | 4 ++-- reapi/src/reapi_utils.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reapi/src/member_list.cpp b/reapi/src/member_list.cpp index 609a5ce..31ed8a5 100644 --- a/reapi/src/member_list.cpp +++ b/reapi/src/member_list.cpp @@ -71,8 +71,8 @@ inline MType getMemberType(usercmd_s) { return MEBMER_USERCMD; } template inline MType getMemberType(T) { static_assert(false, "Not implemented overload"); } -template -inline size_t getTypeSize(T type[]) { return sizeof(T); } +template +inline size_t getTypeSize(T type[size]) { return sizeof(T); } template inline size_t getTypeSize(T& type) { return sizeof(T); } diff --git a/reapi/src/reapi_utils.cpp b/reapi/src/reapi_utils.cpp index 3017c4b..a1a09b0 100644 --- a/reapi/src/reapi_utils.cpp +++ b/reapi/src/reapi_utils.cpp @@ -3,7 +3,7 @@ void Broadcast(const char *sentence) { char text[128]; - snprintf(text, sizeof text, "%!MRAD_%s", sentence); + snprintf(text, sizeof text, "%%!MRAD_%s", sentence); EMESSAGE_BEGIN(MSG_BROADCAST, gmsgSendAudio); EWRITE_BYTE(0);