angelscript: don't use deprecated GetParamTypeId

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2015-05-18 17:17:19 +03:00
parent 0ca0b21327
commit 65c25065ee

View File

@ -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, &paramTypeId, &flags, NULL, NULL);
if( (paramTypeId & ~(asTYPEID_OBJHANDLE|asTYPEID_HANDLETOCONST)) != (subTypeId & ~(asTYPEID_OBJHANDLE|asTYPEID_HANDLETOCONST)) )
continue;