Merge pull request #19 from Jackkal/fix_ActionEnumerate2

Fix ActionEnumerate2 - Null should be considered part of EnumerateAction...
This commit is contained in:
honfika
2015-03-27 09:58:32 +01:00
@@ -12,7 +12,8 @@
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */ * License along with this library.
*/
package com.jpexs.decompiler.flash.action.swf6; package com.jpexs.decompiler.flash.action.swf6;
import com.jpexs.decompiler.flash.action.Action; import com.jpexs.decompiler.flash.action.Action;
@@ -39,7 +40,6 @@ public class ActionEnumerate2 extends Action {
@Override @Override
public void translate(TranslateStack stack, List<GraphTargetItem> output, HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions, int staticOperation, String path) { public void translate(TranslateStack stack, List<GraphTargetItem> output, HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions, int staticOperation, String path) {
GraphTargetItem object = stack.pop(); GraphTargetItem object = stack.pop();
stack.push(new DirectValueActionItem(null, 0, new Null(), new ArrayList<String>()));
stack.push(new EnumerateActionItem(this, object)); stack.push(new EnumerateActionItem(this, object));
} }
} }