From c7982c2bc33276644c7bd3e1b8fca4860c40e1f5 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sat, 28 Aug 2004 21:25:03 +0000 Subject: [PATCH] Probably fixed problem with forwards getting garbage parameters --- amxmodx/CForward.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/amxmodx/CForward.h b/amxmodx/CForward.h index b4cdaed4..2ae1195b 100755 --- a/amxmodx/CForward.h +++ b/amxmodx/CForward.h @@ -108,6 +108,12 @@ public: { return m_Funcs.size(); } + ForwardParam getParamType(int paramId) const + { + if (paramId < 0 || paramId >= m_NumParams) + return FP_DONE; + return m_ParamTypes[paramId]; + } }; // Single plugin forward @@ -133,6 +139,12 @@ public: { return (m_HasFunc) ? 1 : 0; } + ForwardParam getParamType(int paramId) const + { + if (paramId < 0 || paramId >= m_NumParams) + return FP_DONE; + return m_ParamTypes[paramId]; + } }; class CForwardMngr @@ -170,6 +182,7 @@ public: bool isSPForward(int id) const; // check whether forward is single plugin int getParamsNum(int id) const; // get num of params of a forward int getFuncsNum(int id) const; // get num of found functions of a forward + ForwardParam getParamType(int id, int paramId) const; cell prepareArray(void *ptr, unsigned int size, ForwardArrayElemType type); // prepare array };