- 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.
This commit is contained in:
Christoph Oelckers 2016-11-13 14:48:27 +01:00
parent a2f4cd7cda
commit 1e6a632774

View file

@ -762,6 +762,7 @@ void FFunctionBuildList::Build()
codesize += sfunc->CodeSize; codesize += sfunc->CodeSize;
} }
sfunc->PrintableName = item.PrintableName; sfunc->PrintableName = item.PrintableName;
sfunc->Unsafe = ctx.Unsafe;
} }
delete item.Code; delete item.Code;
if (dump != nullptr) if (dump != nullptr)