From f5d284a4a5cedc8fdda48c45ac7cca03354418d0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 10 Sep 2003 22:02:44 +0000 Subject: [PATCH] fixes --- stepmania/src/RageSoundReader_WAV.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageSoundReader_WAV.cpp b/stepmania/src/RageSoundReader_WAV.cpp index 5af55f359b..723afb1330 100644 --- a/stepmania/src/RageSoundReader_WAV.cpp +++ b/stepmania/src/RageSoundReader_WAV.cpp @@ -29,6 +29,7 @@ #include "RageUtil.h" #include +#include #include #define BAIL_IF_MACRO(c, e, r) if (c) { SetError(e); return r; } @@ -562,7 +563,7 @@ int RageSoundReader_WAV::Read(char *buf, unsigned len) #if SDL_BYTEORDER == SDL_BIG_ENDIAN const int cnt = len / sizeof(Sint16); Sint16 *tbuf = (Sint16 *) buf; - for( int i = 0; i < cnt; ++cnt ) + for( int i = 0; i < cnt; ++i ) tbuf[i] = SDL_Swap16( tbuf[i] ); #endif }