From e9b35b60dc1803acc873b427dc3ad84f21436afb Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 1 Apr 2007 06:48:18 +0000 Subject: [PATCH] Add debugging. Print out the first of the enum strings. --- stepmania/src/EnumHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/EnumHelper.cpp b/stepmania/src/EnumHelper.cpp index bda233d950..ad56b67cd7 100644 --- a/stepmania/src/EnumHelper.cpp +++ b/stepmania/src/EnumHelper.cpp @@ -65,7 +65,7 @@ const RString &EnumToString( int iVal, int iMax, const char **szNameArray, auto_ // iMax+1 is "Invalid". iMax+0 is the NUM_ size value, which can not be converted // to a string. - ASSERT_M( iVal >= 0 && (iVal < iMax || iVal == iMax+1), ssprintf("%i, %i", iVal, iMax) ); + ASSERT_M( iVal >= 0 && (iVal < iMax || iVal == iMax+1), ssprintf("%i, %i, (%s)", iVal, iMax, szNameArray[0]) ); return *pNameCache[iVal]; }