mirror of
https://github.com/UberGames/ioef.git
synced 2025-02-17 17:31:08 +00:00
Throw error when making calls to empty VM
This commit is contained in:
parent
8a500d71da
commit
acc2da023c
1 changed files with 4 additions and 4 deletions
|
@ -765,14 +765,14 @@ locals from sp
|
||||||
==============
|
==============
|
||||||
*/
|
*/
|
||||||
|
|
||||||
intptr_t QDECL VM_Call( vm_t *vm, int callnum, ... ) {
|
intptr_t QDECL VM_Call( vm_t *vm, int callnum, ... )
|
||||||
|
{
|
||||||
vm_t *oldVM;
|
vm_t *oldVM;
|
||||||
intptr_t r;
|
intptr_t r;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if ( !vm ) {
|
if(!vm || !vm->name[0])
|
||||||
Com_Error( ERR_FATAL, "VM_Call with NULL vm" );
|
Com_Error(ERR_FATAL, "VM_Call with NULL vm");
|
||||||
}
|
|
||||||
|
|
||||||
oldVM = currentVM;
|
oldVM = currentVM;
|
||||||
currentVM = vm;
|
currentVM = vm;
|
||||||
|
|
Loading…
Reference in a new issue