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 }