Skip to content

Commit f498f59

Browse files
RuzihmwixoaGit
andauthored
Update OpenDreamRuntime/Procs/Native/DreamProcNativeList.cs
Co-authored-by: wixoa <wixoag@gmail.com>
1 parent 33f63d9 commit f498f59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OpenDreamRuntime/Procs/Native/DreamProcNativeList.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ private static int ListRemove(IDreamList list, ReadOnlySpan<DreamValue> args) {
152152
if (argument.TryGetValueAsDreamList(out var argumentList)) {
153153
if (argumentList == list) {
154154
list.Cut();
155-
continue;
155+
itemRemoved += list.GetLength();
156+
break;
156157
}
157158

158159
foreach (DreamValue value in argumentList.EnumerateValues()) {

0 commit comments

Comments
 (0)