From 3980cf04a0e98ed0b30c7fd25ea1ca06977cdc16 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 12 Aug 2016 12:05:02 +0200 Subject: [PATCH] Fix exception with __using refs #12408 --- lib/config/expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/expression.cpp b/lib/config/expression.cpp index 11ffc9c08..bd24225a1 100644 --- a/lib/config/expression.cpp +++ b/lib/config/expression.cpp @@ -910,7 +910,7 @@ ExpressionResult UsingExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhin if (!frame.Imports) frame.Imports = new Array(); else - frame.Imports = static_pointer_cast(frame.Imports->Clone()); + frame.Imports = static_pointer_cast(frame.Imports->ShallowClone()); frame.Imports->Add(import);