Redo ACustomInventory::CallStateChain to check return types

This commit is contained in:
Randy Heit 2016-02-18 22:05:10 -06:00
commit ade780d810
2 changed files with 51 additions and 18 deletions

View file

@ -551,7 +551,7 @@ begin:
}
stack->PopFrame();
}
assert(numret == C);
assert(numret == C && "Number of parameters returned differs from what was expected by the caller");
for (b = B; b != 0; --b)
{
reg.param[--f->NumParam].~VMValue();