Fixed big bug in executeForwards where float parameters were skipped and the stack might be messed up
(thanks to BAILOPAN)
This commit is contained in:
parent
940b0be4b9
commit
b52d77e8bf
|
@ -494,7 +494,8 @@ cell executeForwards(int id, ...)
|
|||
REAL tmp = (REAL)va_arg(argptr, double); // floats get converted to doubles
|
||||
params[i] = *(cell*)&tmp;
|
||||
}
|
||||
params[i] = (cell)va_arg(argptr, cell);
|
||||
else
|
||||
params[i] = (cell)va_arg(argptr, cell);
|
||||
}
|
||||
va_end(argptr);
|
||||
return g_forwards.executeForwards(id, params);
|
||||
|
|
Loading…
Reference in New Issue
Block a user