summaryrefslogtreecommitdiff
path: root/src/qcommon/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon/vm.c')
-rw-r--r--src/qcommon/vm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qcommon/vm.c b/src/qcommon/vm.c
index 702bdd28..7baf9321 100644
--- a/src/qcommon/vm.c
+++ b/src/qcommon/vm.c
@@ -766,14 +766,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;