Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit authored Mar 1, 2024
1 parent 2bd4895 commit 6bc9d2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion OpenDreamRuntime/Objects/Types/DreamObjectSavefile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ public DreamValue GetSavefileValue(string? index) {
public void RemoveSavefileValue(string index){
if (CurrentDir.Remove(index)) {
SavefilesToFlush.Add(this);
SavefilesToFlush.Add(this);
}
}

Expand Down
2 changes: 1 addition & 1 deletion OpenDreamRuntime/Procs/Native/DreamProcNativeSavefile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static string ExportTextInternalListFormat(DreamObjectSavefile.SFDreamJs
case DreamObjectSavefile.SFDreamListValue listValue:
string result = "list(";

for(int i=0; i<listValue.AssocKeys.Count; i++){
for(int i=0; i<listValue.AssocKeys.Count; i++){
if(listValue.AssocData != null && listValue.AssocData[i] != null)
result += ExportTextInternalListFormat(listValue.AssocKeys[i])+" = "+ExportTextInternalListFormat(listValue.AssocData[i]!);
else
Expand Down

0 comments on commit 6bc9d2b

Please sign in to comment.