Don't crash when enable debug stats is enabled in a game, then turned off after exiting a game.

This commit is contained in:
The Dax committed 2014-01-27 23:34:02 -05:00
1 parent 1268bbd489
commit 87c2201873
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -434,9 +434,7 @@ void GameSettingsScreen::update(InputState &input) {
g_Config.iFpsLimit = alternateSpeedTable[iAlternateSpeedPercent_];
if (g_Config.bShowDebugStats != showDebugStats_) {
// This affects the jit.
if (MIPSComp::jit) {
MIPSComp::jit->ClearCache();
}
NativeMessageReceived("clear jit", "");
g_Config.bShowDebugStats = showDebugStats_;
}
}