From 2846fb4c9c8359821b8aedf13e72a2e03313851c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 8 Sep 2004 00:33:20 +0000 Subject: [PATCH] fix crashes on invalid #MODS entry --- stepmania/src/Course.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index aed528ee03..b8c9ce47f8 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -113,7 +113,7 @@ void Course::LoadFromCRSFile( CString sPath ) { CStringArray sBits; split( sParams[j], "=", sBits, false ); - if( sBits.size() == 0 ) + if( sBits.size() < 2 ) continue; TrimLeft( sBits[0] );