mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +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;
|
||||
intptr_t r;
|
||||
int i;
|
||||
|
||||
if ( !vm ) {
|
||||
Com_Error( ERR_FATAL, "VM_Call with NULL vm" );
|
||||
}
|
||||
if(!vm || !vm->name[0])
|
||||
Com_Error(ERR_FATAL, "VM_Call with NULL vm");
|
||||
|
||||
oldVM = currentVM;
|
||||
currentVM = vm;
|
||||
|
|
Loading…
Reference in a new issue