From 5ecb2f595d0dcf4e359c8a88c9b624ad01c26171 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 21 Nov 2015 11:28:15 -0800 Subject: [PATCH] Compile tweak Reference loop variable not other form --- pk3DS/Subforms/OWSE.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk3DS/Subforms/OWSE.cs b/pk3DS/Subforms/OWSE.cs index 2f2f628..53850bb 100644 --- a/pk3DS/Subforms/OWSE.cs +++ b/pk3DS/Subforms/OWSE.cs @@ -698,7 +698,7 @@ private void B_DumpMaps_Click(object sender, EventArgs e) File.WriteAllBytes(Path.Combine(folder, String.Format("{0} ({1}).png", zdLocations[i].Replace('?', '-'), i)), data); } string l = mm.EntryList.Where(t => t != 0xFFFF).Aggregate("", (current, t) => current + t.ToString("000" + " ")); - result[i] = String.Format("{0}\t{1}\t{2}", mapView.DrawMap.ToString("000"), CB_LocationID.Items[i], l); + result[i] = String.Format("{0}\t{1}\t{2}", i.ToString("000"), CB_LocationID.Items[i], l); } if (Util.Prompt(MessageBoxButtons.YesNoCancel, "Write Map parse output?") == DialogResult.Yes) File.WriteAllLines("MapLocations.txt", result);