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);