Merge pull request #442 from alliedmodders/netchanR

Use present netchannel instead of cached netchannel in CHookManager::SendFile.
This commit is contained in:
Kyle Sanderson 2015-11-07 13:04:02 -08:00
commit ce25a44e00

View File

@ -332,7 +332,7 @@ bool CHookManager::SendFile(const char *filename, unsigned int transferID)
} }
int userid = 0; int userid = 0;
IClient *pClient = (IClient *)m_pActiveNetChannel->GetMsgHandler(); IClient *pClient = (IClient *)pNetChannel->GetMsgHandler();
if (pClient != NULL) if (pClient != NULL)
{ {
userid = pClient->GetUserID(); userid = pClient->GetUserID();