Ticket #8033: revlist.diff

File revlist.diff, 534 bytes (added by SF/madm00se, 21 years ago)

descumm6 reverse list patch

  • descumm6.cpp

    old new  
    598598{
    599599        StackEnt *se = se_new(seStackList);
    600600        StackEnt *senum = pop();
    601         int num;
     601        int num, i;
    602602
    603603        if (senum->type != seInt) {
    604604                printf("stackList with variable number of arguments, cannot disassemble");
     
    607607        se->data = num = senum->data;
    608608        se->list = (StackEnt **) calloc(num, sizeof(StackEnt *));
    609609
    610         while (--num >= 0) {
     610        for(i = 0; i < num; i++) {
    611611                se->list[i] = pop();
    612612        }
    613613        return se;