Script: Crash when parsing a function call with more than ten parameters

Günther Brammer 2011-02-12 20:24:52 +01:00
parent a3ec7b5ae2
commit c667de49b5
1 changed files with 1 additions and 1 deletions

View File

@ -1999,7 +1999,7 @@ int C4AulParseState::Parse_Params(int iMaxCnt, const char * sWarn, C4AulFunc * p
{
// get a parameter
Parse_Expression();
if (pFunc && (Type == PARSER))
if (pFunc && (Type == PARSER) && size < iMaxCnt)
{
C4V_Type to = pFunc->GetParType()[size];
// pFunc either was the return value from a GetFirstFunc-Call or