From 1e6a632774f5db7e604362ab0963c30fe68304e9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 13 Nov 2016 14:48:27 +0100 Subject: [PATCH] - copy the Unsafe flag to the actual function. This must have gotten lost during the merge between my own code and Leonard2's fix. Now even in DECORATE it is possible to report most cases in which user variables are accessed from non-item states as an error. This will report all states which can be traced by a direct link from a special state label. It will not find states that only get used via A_Jump etc. --- src/scripting/vm/vmbuilder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripting/vm/vmbuilder.cpp b/src/scripting/vm/vmbuilder.cpp index acb67e2f5..19d89fc6f 100644 --- a/src/scripting/vm/vmbuilder.cpp +++ b/src/scripting/vm/vmbuilder.cpp @@ -762,6 +762,7 @@ void FFunctionBuildList::Build() codesize += sfunc->CodeSize; } sfunc->PrintableName = item.PrintableName; + sfunc->Unsafe = ctx.Unsafe; } delete item.Code; if (dump != nullptr)