changeset 208:cd877501ba27 src

this assertion should be checked on LinkPrevC, not on LinkNextC (fixes the image galleries on the LotR-SE Bonus disc 1)
author mroi
date Tue, 10 Jun 2003 15:11:18 +0000
parents a2eb1afa1af8
children 80078f2c53f6
files vm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vm.c	Mon Jun 09 15:17:44 2003 +0000
+++ b/vm.c	Tue Jun 10 15:11:18 2003 +0000
@@ -1228,7 +1228,6 @@
       /* BUTTON number:data1 */
       if(link_values.data1 != 0)
 	(vm->state).HL_BTNN_REG = link_values.data1 << 10;
-      assert((vm->state).cellN > 1);
       (vm->state).cellN += 1;
       link_values = play_Cell(vm);
       break;
@@ -1237,6 +1236,7 @@
       /* BUTTON number:data1 */
       if(link_values.data1 != 0)
 	(vm->state).HL_BTNN_REG = link_values.data1 << 10;
+      assert((vm->state).cellN > 1);
       (vm->state).cellN -= 1;
       link_values = play_Cell(vm);
       break;