reset m_sNextScreen and m_sPrevScreen in BeginScreen()

This commit is contained in:
Glenn Maynard
2006-01-15 08:28:00 +00:00
parent 9ca202d311
commit 51079573e2
+5
View File
@@ -74,6 +74,11 @@ void Screen::Init()
void Screen::BeginScreen()
{
/* Screens set these when they determine their next screen dynamically. Reset them
* here, so a reused screen doesn't inherit these from the last time it was used. */
m_sNextScreen = RString();
m_sPrevScreen = RString();
this->RunCommands( THEME->GetMetricA(m_sName, "ScreenOnCommand") );
}