Fix checking parameters in CBotFunction

master
melex750 2016-04-19 10:36:06 -04:00
parent 952a5423fd
commit e7942962d3
1 changed files with 2 additions and 2 deletions

View File

@ -840,8 +840,8 @@ bool CBotFunction::CheckParam(CBotDefParam* pParam)
CBotDefParam* pp = m_param;
while ( pp != nullptr && pParam != nullptr )
{
CBotTypResult type1 = pp->GetType();
CBotTypResult type2 = pParam->GetType();
CBotTypResult type1 = pp->GetTypResult();
CBotTypResult type2 = pParam->GetTypResult();
if ( !type1.Compare(type2) ) return false;
pp = pp->GetNext();
pParam = pParam->GetNext();