From 966bec90a3777d716ad8b8036533b5c657fe3b48 Mon Sep 17 00:00:00 2001 From: Nicolas Cannasse Date: Mon, 27 Oct 2014 09:13:44 +0100 Subject: [PATCH] initialize locals in Interp.new (close #18) --- hscript/Interp.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hscript/Interp.hx b/hscript/Interp.hx index d14c01b..35a0fca 100644 --- a/hscript/Interp.hx +++ b/hscript/Interp.hx @@ -53,8 +53,10 @@ class Interp { public function new() { #if haxe3 variables = new Map(); + locals = new Map(); #else variables = new Hash(); + locals = new Hash(); #end variables.set("null",null); variables.set("true",true);