Fix an aul preparser crash on DirectExec functions parsing

GetLastRetType doesn't work because the preparser does not generate code.

The code looks a bit like this line just got lost somehow?
qteditor
Sven Eberhardt 2016-08-08 15:26:25 -04:00
parent a713870f33
commit 4581022411
1 changed files with 1 additions and 0 deletions

View File

@ -1876,6 +1876,7 @@ void C4AulParse::Parse_Expression(int iParentPrio)
Shift();
// generate code for the following expression
Parse_Expression(op->Priority);
if (Type == PARSER)
{
C4V_Type to = op->Type1;
C4V_Type from = GetLastRetType(to);