Parcourir la source

Bug fix reported on squirrel forum

mingodad il y a 10 ans
Parent
commit
689e8b30c1
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      SquiLu/squirrel/sqcompiler.cpp

+ 3 - 1
SquiLu/squirrel/sqcompiler.cpp

@@ -529,7 +529,9 @@ public:
                 SQInteger tmp = _fs->PushTarget();
                 SQInteger tmp = _fs->PushTarget();
                 _fs->AddInstruction(_OP_GETOUTER,   tmp, pos);
                 _fs->AddInstruction(_OP_GETOUTER,   tmp, pos);
                 _fs->AddInstruction(ChooseArithOpByToken(tok), tmp, val, tmp, 0);
                 _fs->AddInstruction(ChooseArithOpByToken(tok), tmp, val, tmp, 0);
-                _fs->AddInstruction(_OP_SETOUTER, tmp, pos, tmp);
+                _fs->PopTarget();
+                _fs->PopTarget();
+                _fs->AddInstruction(_OP_SETOUTER, _fs->PushTarget(), pos, tmp);
             }
             }
             break;
             break;
         }
         }