From dcdcd3b85945905dfc15e22528720e749b487093 Mon Sep 17 00:00:00 2001 From: Aaron Gullickson Date: Mon, 25 Mar 2024 09:50:08 -0700 Subject: [PATCH] Correct writing to XML of EMI and Blowing Sand conditions --- MekHQ/src/mekhq/campaign/mission/Scenario.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MekHQ/src/mekhq/campaign/mission/Scenario.java b/MekHQ/src/mekhq/campaign/mission/Scenario.java index baea6bb476..d58b892269 100644 --- a/MekHQ/src/mekhq/campaign/mission/Scenario.java +++ b/MekHQ/src/mekhq/campaign/mission/Scenario.java @@ -817,8 +817,8 @@ protected int writeToXMLBegin(final PrintWriter pw, int indent) { MHQXMLUtility.writeSimpleXMLTag(pw, indent, "temperature", temperature); MHQXMLUtility.writeSimpleXMLTag(pw, indent, "atmosphere", atmosphere.ordinal()); MHQXMLUtility.writeSimpleXMLTag(pw, indent, "gravity", gravity); - MHQXMLUtility.writeSimpleXMLTag(pw, indent, "emi", emi.ordinal()); - MHQXMLUtility.writeSimpleXMLTag(pw, indent, "blowingSand", blowingSand.ordinal()); + MHQXMLUtility.writeSimpleXMLTag(pw, indent, "emi", emi.isEMI()); + MHQXMLUtility.writeSimpleXMLTag(pw, indent, "blowingSand", blowingSand.isBlowingSand()); MHQXMLUtility.writeSimpleXMLTag(pw, indent, "shiftWindDirection", shiftWindDirection); MHQXMLUtility.writeSimpleXMLTag(pw, indent, "shiftWindStrength", shiftWindStrength); MHQXMLUtility.writeSimpleXMLTag(pw, indent, "maxWindStrength", maxWindStrength.ordinal());