mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 02:18:35 +00:00
Oops. Fix non-bot IClient lookups for older SDK 2013 mods.
This commit is contained in:
parent
0bde8634aa
commit
a3852d98ae
@ -1974,11 +1974,14 @@ void CPlayer::Initialize(const char *name, const char *ip, edict_t *pEntity)
|
||||
{
|
||||
m_pIClient = engine22->GetIServer()->GetClient(m_iIndex - 1);
|
||||
}
|
||||
else
|
||||
#else
|
||||
INetChannel *pNetChan = static_cast<INetChannel *>(engine->GetPlayerNetInfo(m_iIndex));
|
||||
if (pNetChan)
|
||||
{
|
||||
m_pIClient = static_cast<IClient *>(pNetChan->GetMsgHandler());
|
||||
INetChannel *pNetChan = static_cast<INetChannel *>(engine->GetPlayerNetInfo(m_iIndex));
|
||||
if (pNetChan)
|
||||
{
|
||||
m_pIClient = static_cast<IClient *>(pNetChan->GetMsgHandler());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user