Merge pull request #8237 from JosJuice/memory-watcher-nullptr

Fix FIFO player crashing when USE_MEMORYWATCHER is defined
This commit is contained in:
Connor McLaughlin authored and GitHub committed 2019-07-11 10:38:27 +10:00
commit 8d8d103739
1 file changed
+2 -1
+2 -1
View File
@@ -133,7 +133,8 @@ void FrameUpdateOnCPUThread()
void OnFrameEnd()
{
#ifdef USE_MEMORYWATCHER
s_memory_watcher->Step();
if (s_memory_watcher)
s_memory_watcher->Step();
#endif
}