mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
moved observer attachment
This commit is contained in:
@@ -384,7 +384,7 @@ public enum FControl {
|
||||
|
||||
// models shall notify controllers of changes
|
||||
|
||||
game.getGameLog().addObserver(CLog.SINGLETON_INSTANCE);
|
||||
|
||||
// some observers were set in CMatchUI.initMatch
|
||||
|
||||
// Listen to DuelOutcome event to show ViewWinLose
|
||||
|
||||
@@ -49,6 +49,7 @@ public enum CLog implements ICDoc, Observer {
|
||||
*/
|
||||
public void setModel(GameLog gameLog) {
|
||||
model = gameLog;
|
||||
model.addObserver(this);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
||||
Reference in New Issue
Block a user