From 3ed33e8e17725e174c852fbc22e6018812664a1e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 22 May 2003 21:13:02 +0000 Subject: [PATCH] CString("")[0] is illegal --- stepmania/src/RageUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index b5c3c9282e..b819170706 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -64,7 +64,7 @@ int power_of_two(int input) bool IsAnInt( const CString &s ) { - if( s[0] == '\0' ) + if( !s.size() ) return false; for( int i=0; s[i]; i++ )