summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
authorjaortega <jaortega>2001-03-14 23:00:41 +0000
committerjaortega <jaortega>2001-03-14 23:00:41 +0000
commitb0eaea33582f7993b09afab1d464136b4061cadb (patch)
tree853c9bcc07de601a9e73194d9e19f50b8f980bc2 /mixlib
parent024af99de0dd9db8403ffe02b93f93c5a069e859 (diff)
downloadmdk-b0eaea33582f7993b09afab1d464136b4061cadb.tar.gz
mdk-b0eaea33582f7993b09afab1d464136b4061cadb.tar.bz2
Vasilij's bug fixed
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/xmix_vm.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/mixlib/xmix_vm.c b/mixlib/xmix_vm.c
index d304745..e614cb4 100644
--- a/mixlib/xmix_vm.c
+++ b/mixlib/xmix_vm.c
@@ -337,13 +337,12 @@ jrd_handler_(mix_vm_t *vm, const mix_ins_t *ins)
g_assert(ins->opcode == mix_opJRED);
g_return_val_if_fail (ins->fspec < BD_NO_, TRUE);
g_return_val_if_fail (get_dev_ (vm, ins->fspec) != NULL, TRUE);
- if ( mix_device_busy (get_dev_ (vm, ins->fspec)) )
- inc_loc_ (vm);
- else {
- set_rJ_(vm, get_loc_(vm));
- set_loc_ (vm, get_M_ (vm, ins));
- }
-
+ inc_loc_ (vm);
+ if ( !mix_device_busy (get_dev_ (vm, ins->fspec)) )
+ {
+ set_rJ_(vm, get_loc_(vm));
+ set_loc_ (vm, get_M_ (vm, ins));
+ }
return TRUE;
}