Skip to content

Commit

Permalink
Throw error when making calls to empty VM
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Schulz committed Sep 27, 2011
1 parent 8a500d7 commit acc2da0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/qcommon/vm.c
Expand Up @@ -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;
Expand Down

0 comments on commit acc2da0

Please sign in to comment.