mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 05:22:55 +00:00
Merge pull request #1 from FreeSlave/aghl-strfix
Fix building (error: invalid conversion from ‘const char*’ to ‘char*’…
This commit is contained in:
commit
1f03fdf2ad
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user