Haxe development build fix

This commit is contained in:
Joshua Granick
2016-10-26 13:48:52 -07:00
parent 666e724bb7
commit 87793d8b4c

View File

@@ -71,10 +71,16 @@ import haxe.ds.StringMap;
var result = Type.createInstance (Type.getClass (v), []);
untyped {
for (ii in 0...v.length) {
result.push (deepCopy (v[ii]));
if (result != null) {
untyped {
var copy:Dynamic;
for (ii in 0...v.length) {
copy = deepCopy (v[ii]);
result.push (copy);
}
}
}
return result;