From 65c25065ee99494ebc8d775c2c270bb123cce3da Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 18 May 2015 17:17:19 +0300 Subject: [PATCH] angelscript: don't use deprecated GetParamTypeId Signed-off-by: Igor Gnatenko --- src/scriptengine/scriptarray.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scriptengine/scriptarray.cpp b/src/scriptengine/scriptarray.cpp index edb2bcd1c..c04b3f98c 100644 --- a/src/scriptengine/scriptarray.cpp +++ b/src/scriptengine/scriptarray.cpp @@ -1496,7 +1496,8 @@ void CScriptArray::Precache() continue; // The parameter must either be a reference to the subtype or a handle to the subtype - int paramTypeId = func->GetParamTypeId(0, &flags); + int paramTypeId; + func->GetParam(0, ¶mTypeId, &flags, NULL, NULL); if( (paramTypeId & ~(asTYPEID_OBJHANDLE|asTYPEID_HANDLETOCONST)) != (subTypeId & ~(asTYPEID_OBJHANDLE|asTYPEID_HANDLETOCONST)) ) continue;