Fix unreachable code (#465)

This commit is contained in:
Dmitry Novikov 2017-10-28 17:27:39 +03:00 committed by Vincent Herbet
parent 5a2d940631
commit 7fe7cd746f

View File

@ -441,8 +441,8 @@ int CForwardMngr::registerSPForward(int func, AMX *amx, int numParams, const For
if (pForward->getFuncsNum() == 0) if (pForward->getFuncsNum() == 0)
{ {
return -1;
delete pForward; delete pForward;
return -1;
} }
m_SPForwards.append(pForward); m_SPForwards.append(pForward);