Skip to content

Commit 69d73c5

Browse files
Update Script.cs
1 parent 99c20d2 commit 69d73c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ScriptSystem/Script.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public required ScriptExecutor Executor
6363

6464

6565
private readonly HashSet<Variable> _variables = [];
66-
public ReadOnlyCollection<Variable> Variables => new(_variables.ToList());
66+
public ReadOnlyCollection<Variable> Variables => _variables.ToList().AsReadOnly();
6767

6868
private CoroutineHandle _scriptCoroutine;
6969
private bool? _isEventAllowed;

0 commit comments

Comments
 (0)