This commit is contained in:
Night Owl 2017-04-04 00:24:09 +05:00
commit e1752489c3

View File

@ -516,7 +516,7 @@ void AgClient::Say(CBasePlayer* pPlayer, say_type Type )
//Weapon //Weapon
if (pPlayer && pPlayer->IsAlive() && !pPlayer->IsSpectator() && pPlayer->m_pActiveItem && pPlayer->m_pActiveItem->m_iId < MAX_WEAPONS) 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) if (pWeapon)
{ {
pText = pText + sprintf(pText,"%s",&pWeapon[7]); pText = pText + sprintf(pText,"%s",&pWeapon[7]);