From 63592212d526f7ea94734ee9f813390a471b831c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 7 Jan 2008 22:36:39 +0000 Subject: [PATCH] - fixed amb1302 - GetClientMenu() could return 1 for stale external menus - fixed a debug assertion from StartMessage() + ShowMenu --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401844 --- core/MenuStyle_Radio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/MenuStyle_Radio.cpp b/core/MenuStyle_Radio.cpp index 5efb3115..20372c59 100644 --- a/core/MenuStyle_Radio.cpp +++ b/core/MenuStyle_Radio.cpp @@ -118,6 +118,7 @@ bool CRadioStyle::OnClientCommand(int client, const char *cmdname, const CComman { if (!m_players[client].bInMenu) { + m_players[client].bInExternMenu = false; return false; } @@ -136,7 +137,7 @@ static int g_last_clients[256]; void CRadioStyle::OnUserMessage(int msg_id, bf_write *bf, IRecipientFilter *pFilter) { int count = pFilter->GetRecipientCount(); - bf_read br(bf->GetBasePointer(), 2); + bf_read br(bf->GetBasePointer(), 3); br.ReadWord(); int c = br.ReadChar();