Minor optimization

This commit is contained in:
Nefarius 2014-06-07 20:18:15 +02:00 committed by Nicholas Hastings
parent 27256665ac
commit 3ae505229b

View File

@ -700,8 +700,7 @@ void HTTPSessionManager::RunFrame()
if (pCtx != NULL) if (pCtx != NULL)
{ {
funcid_t id = request.contextPack.pCallbackFunction->uPluginFunction; funcid_t id = request.contextPack.pCallbackFunction->uPluginFunction;
IPluginFunction *pFunction = NULL; IPluginFunction *pFunction = pCtx->GetFunctionById(id);
pFunction = pCtx->GetFunctionById(id);
if (pFunction != NULL) if (pFunction != NULL)
{ {