mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
Error out instead of crashing for vector out variables
This commit is contained in:
parent
941c0850ba
commit
fb33a29400
1 changed files with 4 additions and 0 deletions
|
@ -824,6 +824,10 @@ static int ExecScriptFunc(VMFrameStack *stack, VMReturn *ret, int numret)
|
||||||
assert(b < f->NumRegF);
|
assert(b < f->NumRegF);
|
||||||
::new(param) VMValue(®.f[b]);
|
::new(param) VMValue(®.f[b]);
|
||||||
break;
|
break;
|
||||||
|
case REGT_FLOAT | REGT_MULTIREG2 | REGT_ADDROF:
|
||||||
|
case REGT_FLOAT | REGT_MULTIREG3 | REGT_ADDROF:
|
||||||
|
case REGT_FLOAT | REGT_MULTIREG4 | REGT_ADDROF:
|
||||||
|
I_Error("REGT_ADDROF not implemented for vectors\n");
|
||||||
case REGT_FLOAT | REGT_KONST:
|
case REGT_FLOAT | REGT_KONST:
|
||||||
assert(b < sfunc->NumKonstF);
|
assert(b < sfunc->NumKonstF);
|
||||||
::new(param) VMValue(konstf[b]);
|
::new(param) VMValue(konstf[b]);
|
||||||
|
|
Loading…
Reference in a new issue