fix an observer leak on InputControl

This commit is contained in:
slapshot5
2012-01-05 07:04:25 +00:00
parent 8a63b576d3
commit 65a3d2ff1e

View File

@@ -41,9 +41,13 @@ public class GuiInput extends MyObservable implements Observer {
* </p>
*/
public GuiInput() {
AllZone.getInputControl().deleteObservers();
AllZone.getInputControl().addObserver(this);
AllZone.getStack().addObserver(this);
AllZone.getPhase().addObserver(this);
//System.out.println("Stack observers: " + AllZone.getStack().countObservers());
}
/** {@inheritDoc} */