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-861f7616d084master
parent
0fcfaebdd0
commit
1ac2942948
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue