LordGolias/sqf

Private variable warning in lazy evaluation

Closed this issue · 2 comments

The following statement will produce a warning "Local variable ;_view' is not from this scope.":

private _view = cameraView;

if (!isNull objectParent player && {_view == "GUNNER"}) then {
};

What's strange however is that a warning is not produced in the following statement:

private _view = cameraView;

if (true && {_view == "GUNNER"}) then {
};

Did you verify on latest commit? Should have been fixed with #3.

Yes, pulled the latest commit (0b952c1) and install using pip install -e ..