Skip to content

Commit

Permalink
Fixes . in spawn()
Browse files Browse the repository at this point in the history
  • Loading branch information
rejuvenat0r committed Feb 7, 2024
1 parent 148b184 commit 89e5ef9
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 @@ -357,6 +357,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 89e5ef9

Please sign in to comment.