The VM now aborts when a wrong self pointer is used with user variables to avoid random crashes

This commit is contained in:
Leonard2 2016-09-14 13:56:58 +02:00 committed by Christoph Oelckers
commit b5b9baaa87
6 changed files with 37 additions and 3 deletions

View file

@ -440,6 +440,10 @@ int VMFrameStack::Call(VMFunction *func, VMValue *params, int numparams, VMRetur
case X_DIVISION_BY_ZERO:
Printf("division by zero.");
break;
case X_BAD_SELF:
Printf("invalid self pointer.");
break;
}
Printf("\n");