Skip to content

Commit

Permalink
Made RATGenerator thread safe.
Browse files Browse the repository at this point in the history
  • Loading branch information
neoancient committed Sep 19, 2016
1 parent 104606b commit a8d3c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/client/ratgenerator/RATGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ private void loadFactions() {
}
}

private void loadEra(int era) {
private synchronized void loadEra(int era) {
if (eraIsLoaded(era)) {
return;
}
Expand Down

0 comments on commit a8d3c88

Please sign in to comment.