mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
fix an observer leak on InputControl
This commit is contained in:
@@ -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} */
|
||||
|
||||
Reference in New Issue
Block a user