mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 13:26:44 +00:00 
			
		
		
		
	Merge pull request #3056 from akortunov/master
Reset watched stats upon reload or new game start
This commit is contained in:
		
						commit
						8f996d0bce
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -63,6 +63,8 @@ namespace MWGui
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        void watchActor(const MWWorld::Ptr& ptr);
 | 
					        void watchActor(const MWWorld::Ptr& ptr);
 | 
				
			||||||
        MWWorld::Ptr getWatchedActor() const { return mWatched; }
 | 
					        MWWorld::Ptr getWatchedActor() const { return mWatched; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        void forceUpdate() { mWatchedStatsEmpty = true; }
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -495,6 +495,8 @@ namespace MWGui
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            allow(GW_ALL);
 | 
					            allow(GW_ALL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        mStatsWatcher->forceUpdate();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    WindowManager::~WindowManager()
 | 
					    WindowManager::~WindowManager()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue