Skip to content

Commit

Permalink
Do not create StatisticsView before the lwjgl Display, refs #110.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBruegmann committed Jun 22, 2013
1 parent 10868aa commit 043e539
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wota/gamemaster/Simulation.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ public Simulation(SimulationInstance inst) {
gameWorld.setLogger(logger);

statisticsView = new StatisticsView(gameWorld, logger);
// Schedules the application to be run at the correct time in the event queue.
SwingUtilities.invokeLater(statisticsView);
statisticsView.run();

if (isGraphical) {
gameView = new GameView(gameWorld, width, height, inst.getParameters());
Expand Down

0 comments on commit 043e539

Please sign in to comment.