Skip to content

Commit

Permalink
Fixed bug where doing SpeedWalkDelay during world close would cause a…
Browse files Browse the repository at this point in the history
… crash
  • Loading branch information
nickgammon committed Nov 7, 2010
1 parent aba31db commit 0c625cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc_construct.cpp
Expand Up @@ -483,6 +483,7 @@ int i;
{
m_pTimerWnd->DestroyWindow();
delete m_pTimerWnd;
m_pTimerWnd = NULL;
}

for (i = 0; i < 8; i++)
Expand Down
3 changes: 2 additions & 1 deletion serialize.cpp
Expand Up @@ -92,7 +92,8 @@ void CMUSHclientDoc::Serialize(CArchive& ar)
} // end compiling regular expression

// kick off speed walk timer
m_pTimerWnd->ChangeTimerRate (m_iSpeedWalkDelay);
if (m_pTimerWnd)
m_pTimerWnd->ChangeTimerRate (m_iSpeedWalkDelay);

// remember loaded option values

Expand Down

0 comments on commit 0c625cd

Please sign in to comment.