From e0b569d495bfc40ff44bf6571ac224266527c7f2 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 13 Jun 2006 04:08:46 +0000 Subject: [PATCH] Trying to track down a debug assert. --- stepmania/src/XmlFile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/XmlFile.cpp b/stepmania/src/XmlFile.cpp index f105d807dc..268a64bfee 100644 --- a/stepmania/src/XmlFile.cpp +++ b/stepmania/src/XmlFile.cpp @@ -76,6 +76,9 @@ static bool XIsEmptyString( const RString &s ) // put string of (psz~end) on ps string static void SetString( const RString &s, int iStart, int iEnd, RString* ps, bool trim = false ) { + ASSERT( iStart >= 0 ); + ASSERT( iEnd < int(s.length()) ); + ASSERT( iStart <= iEnd ); if( trim ) { while( iStart < iEnd && isspace(s[iStart]) )