fixed a bug regarding panels when starting a new game

This commit is contained in:
Kjistóf 2016-05-13 21:09:45 +02:00
parent 37fa657720
commit b72fc8f1ca

View File

@ -48,6 +48,7 @@ public class ApplicationFrame implements Runnable
public void backToMapSelection() { public void backToMapSelection() {
jframe.remove(gamepanel); jframe.remove(gamepanel);
initMapselector(); initMapselector();
jframe.remove(mapselectorpanel);
jframe.add(mapselectorpanel); jframe.add(mapselectorpanel);
jframe.revalidate(); jframe.revalidate();
} }