From 16a59710406b16705ce211dd716f0cd6738d6aa4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 4 Sep 2002 01:58:15 +0000 Subject: [PATCH] Fix assert fail in endless: reset the background number on reset. --- stepmania/src/Background.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stepmania/src/Background.cpp b/stepmania/src/Background.cpp index d56fe3bbaf..d38db2d2b2 100644 --- a/stepmania/src/Background.cpp +++ b/stepmania/src/Background.cpp @@ -97,16 +97,13 @@ void Background::Unload() m_BackgroundAnimations.RemoveAll(); m_aBGSegments.RemoveAll(); + m_iCurBGSegment = 0; } void Background::LoadFromSong( Song* pSong ) { - /* Endless was crashing due to this; is there any reason not to - * fix it this way? -glenn */ - /* Correct. I added the same chage. -Chris */ Unload(); - const float fXZoom = RECTWIDTH(RECT_BACKGROUND) / (float)SCREEN_WIDTH; const float fYZoom = RECTHEIGHT(RECT_BACKGROUND) / (float)SCREEN_HEIGHT; const float fZoom = max(fXZoom,fYZoom);