From 7fe7cd746f0ccad97c6992543eebd2fec5ffe7d1 Mon Sep 17 00:00:00 2001 From: Dmitry Novikov Date: Sat, 28 Oct 2017 17:27:39 +0300 Subject: [PATCH] Fix unreachable code (#465) --- amxmodx/CForward.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/CForward.cpp b/amxmodx/CForward.cpp index 1ea5d2e4..67ad2893 100755 --- a/amxmodx/CForward.cpp +++ b/amxmodx/CForward.cpp @@ -441,8 +441,8 @@ int CForwardMngr::registerSPForward(int func, AMX *amx, int numParams, const For if (pForward->getFuncsNum() == 0) { - return -1; delete pForward; + return -1; } m_SPForwards.append(pForward);