From 3f666a7cdf52afcb2cc23c43b8d15ec62e95ea0d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 17 Nov 2003 03:53:59 +0000 Subject: [PATCH] Fatal errors in templates that don't even show up until they're used. Ugh. --- stepmania/src/RageUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 710d757ccf..f9873077e5 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -197,7 +197,7 @@ int FindIndex( T1 begin, T1 end, const T2 *p ) T1 iter = find( begin, end, p ); if( iter == end ) return -1; - return it - begin; + return iter - begin; } void TrimLeft(CString &str, const char *s = "\r\n\t ");