Make use of the script type compatibility table during compilation of vlo and slo files.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1098 4a71c877-e1ca-e34f-864e-861f7616d084
master
Roman C 2007-02-12 15:46:54 +00:00
parent 0fcfaebdd0
commit 1ac2942948
1 changed files with 2 additions and 2 deletions

View File

@ -774,9 +774,9 @@ BOOL eventSetContextVar(SCRIPT_CONTEXT *psContext, UDWORD index, INTERP_VAL *dat
return FALSE;
}
if (psVal->type != data->type)
if(!interpCheckEquiv(psVal->type, data->type))
{
ASSERT( FALSE, "eventSetContextVar: Variable type mismatch (%d/%d)", psVal->type, data->type);
ASSERT( FALSE, "eventSetContextVar: Variable type mismatch (var type: %d, data type: %d)", psVal->type, data->type);
return FALSE;
}