From 382f3f158cec33247fa753512e82066e51e69e55 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Sun, 2 Apr 2017 14:52:50 +0300 Subject: [PATCH] =?UTF-8?q?Fix=20building=20(error:=20invalid=20conversion?= =?UTF-8?q?=20from=20=E2=80=98const=20char*=E2=80=99=20to=20=E2=80=98char*?= =?UTF-8?q?=E2=80=99=20[-fpermissive])?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dlls/aghl/agclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/aghl/agclient.cpp b/dlls/aghl/agclient.cpp index 0619b3ed..4b0232d8 100644 --- a/dlls/aghl/agclient.cpp +++ b/dlls/aghl/agclient.cpp @@ -516,7 +516,7 @@ void AgClient::Say(CBasePlayer* pPlayer, say_type Type ) //Weapon if (pPlayer && pPlayer->IsAlive() && !pPlayer->IsSpectator() && pPlayer->m_pActiveItem && pPlayer->m_pActiveItem->m_iId < MAX_WEAPONS) { - char* pWeapon = strstr(pPlayer->m_pActiveItem->pszName(),"weapon_"); + char* pWeapon = (char*)strstr(pPlayer->m_pActiveItem->pszName(),"weapon_"); if (pWeapon) { pText = pText + sprintf(pText,"%s",&pWeapon[7]);