Use present netchannel instead of cached netchannel in CHookManager::SendFile.

This commit is contained in:
Kyle Sanderson 2015-11-07 12:51:13 -08:00
parent cf07ecef46
commit 72edc74e8b

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();