Skip to content

Commit

Permalink
Fixes . in spawn() (#1665)
Browse files Browse the repository at this point in the history
Co-authored-by: rejuvenat0r <[email protected]>
Co-authored-by: wixoa <[email protected]>
  • Loading branch information
3 people authored Oct 13, 2024
1 parent 5e02cf6 commit c616f70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

//# issue 1653

/proc/RunTest()
. = "foobar"
spawn(0)
ASSERT(. == "foobar")
1 change: 1 addition & 0 deletions OpenDreamRuntime/Procs/DMProc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ private DMProcState(DMProcState other, DreamThread thread) {
ArgumentCount = other.ArgumentCount;
_pc = other._pc;
_firstResume = false;
Result = other.Result;

_stack = _dreamValuePool.Rent(other._stack.Length);
_localVariables = _dreamValuePool.Rent(other._localVariables.Length);
Expand Down

0 comments on commit c616f70

Please sign in to comment.