Changed due to Simulation api change.

This commit is contained in:
Kevin Ruland 2012-06-13 16:41:02 +00:00
parent 1f0bcf6730
commit 8b66af7441

View File

@ -38,7 +38,8 @@ public class CurrentRocket {
public void addNewSimulation() { public void addNewSimulation() {
Rocket rocket = rocketDocument.getRocket(); Rocket rocket = rocketDocument.getRocket();
Simulation newSim = new Simulation(rocket); // FIXME - hopefully the change to the Simulation object will be reverted soon.
Simulation newSim = new Simulation(rocketDocument, rocket);
newSim.setName(rocketDocument.getNextSimulationName()); newSim.setName(rocketDocument.getNextSimulationName());
rocketDocument.addSimulation(newSim); rocketDocument.addSimulation(newSim);
notifySimsChanged(); notifySimsChanged();