Set vscript integer param typemask to allow float

This commit is contained in:
samisalreadytaken 2022-01-19 18:39:59 +03:00
parent 023512dcc3
commit aac91b6487

View File

@ -1091,7 +1091,8 @@ bool CreateParamCheck(const ScriptFunctionBinding_t& func, char* output)
switch (func.m_desc.m_Parameters[i])
{
case FIELD_FLOAT:
*output++ = 'n'; // NOTE: Can be int or float
case FIELD_INTEGER:
*output++ = 'n';
break;
case FIELD_CSTRING:
*output++ = 's';
@ -1099,9 +1100,6 @@ bool CreateParamCheck(const ScriptFunctionBinding_t& func, char* output)
case FIELD_VECTOR:
*output++ = 'x'; // Generic instance, we validate on arrival
break;
case FIELD_INTEGER:
*output++ = 'i'; // could use 'n' also which is int or float
break;
case FIELD_BOOLEAN:
*output++ = 'b';
break;