Skip to content

Commit

Permalink
Merge pull request #5914 from kuronekochomusuke/issue_5625
Browse files Browse the repository at this point in the history
escape force so that it saves to xml correctly
  • Loading branch information
IllianiCBT authored Aug 18, 2024
2 parents 2ba5bf0 + 7209845 commit e3f92cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion megamek/src/megamek/common/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import megamek.common.weapons.bombs.*;
import megamek.common.weapons.capitalweapons.CapitalMissileWeapon;
import megamek.common.weapons.infantry.InfantryWeapon;
import megamek.utilities.xml.MMXMLUtility;
import org.apache.logging.log4j.LogManager;

import java.awt.*;
Expand Down Expand Up @@ -15677,7 +15678,7 @@ public String getForceString() {

@Override
public void setForceString(String f) {
forceString = f;
forceString = MMXMLUtility.escape(f);
}

@Override
Expand Down

0 comments on commit e3f92cc

Please sign in to comment.