From a7755bd2b37b18ceefcb468693c0503ec4177200 Mon Sep 17 00:00:00 2001 From: amylizzle Date: Sat, 3 Feb 2024 12:00:48 +0000 Subject: [PATCH] feex --- .../DMProject/Tests/Savefile/SequenceRead.dm | 29 ++++++++++--------- DMCompiler/DM/Visitors/DMProcBuilder.cs | 1 - 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Content.Tests/DMProject/Tests/Savefile/SequenceRead.dm b/Content.Tests/DMProject/Tests/Savefile/SequenceRead.dm index a75214d3ba..7f8c001a36 100644 --- a/Content.Tests/DMProject/Tests/Savefile/SequenceRead.dm +++ b/Content.Tests/DMProject/Tests/Savefile/SequenceRead.dm @@ -5,23 +5,26 @@ var/test4 /proc/RunTest() - var/savefile/F = new("test.sav") - F["test1"] = "beep" - F["test2"] = "boop" - F["test3"] = "berp" - F["test4"] = "borp" + var/savefile/F = new("savtest.sav") + F["savtest1"] = "beep" + F["savtest2"] = "boop" + F["savtest3"] = "berp" + F["savtest4"] = "borp" del(F) - fcopy("test.sav", "test2.sav") - var/savefile/F2 = new("test2.sav") + fcopy("savtest.sav", "savtest2.sav") + var/savefile/F2 = new("savtest2.sav") var/datum/test_holder/T = new() - F2["test1"] >> T.test1 - F2["test2"] >> T.test2 - F2["test3"] >> T.test3 - F2["test4"] >> T.test4 + T.test1 = F2["savtest1"] + T.test2 = F2["savtest2"] + + F2["savtest1"] >> T.test1 + F2["savtest2"] >> T.test2 + F2["savtest3"] >> T.test3 + F2["savtest4"] >> T.test4 ASSERT(T.test1 == "beep") ASSERT(T.test2 == "boop") ASSERT(T.test3 == "berp") ASSERT(T.test4 == "borp") - fdel("test.sav") - fdel("test2.sav") \ No newline at end of file + fdel("savtest.sav") + fdel("savtest2.sav") \ No newline at end of file diff --git a/DMCompiler/DM/Visitors/DMProcBuilder.cs b/DMCompiler/DM/Visitors/DMProcBuilder.cs index 83d232faa6..1819a83c41 100644 --- a/DMCompiler/DM/Visitors/DMProcBuilder.cs +++ b/DMCompiler/DM/Visitors/DMProcBuilder.cs @@ -876,7 +876,6 @@ public void ProcessStatementInput(DMASTProcStatementInput statementInput) { _proc.Input(leftRef, rightRef); _proc.AddLabel(leftEndLabel); - _proc.PopReference(rightRef); _proc.AddLabel(rightEndLabel); }