diff --git a/desmume/src/windows/ram_search.cpp b/desmume/src/windows/ram_search.cpp index 7e194e7c9..4187c575a 100644 --- a/desmume/src/windows/ram_search.cpp +++ b/desmume/src/windows/ram_search.cpp @@ -389,14 +389,14 @@ template<> unsigned char ReadBigEndian(const unsigned char* data) { return *data template compareType GetPrevValueFromVirtualIndex(unsigned int virtualIndex) { - return ReadBigEndian(buffers->s_prevValues + virtualIndex); - //return *(compareType*)(s_prevValues+virtualIndex); +// return ReadBigEndian(buffers->s_prevValues + virtualIndex); + return *(compareType*)(buffers->s_prevValues+virtualIndex); } template compareType GetCurValueFromVirtualIndex(unsigned int virtualIndex) { - return ReadBigEndian(buffers->s_curValues + virtualIndex); -// return *(compareType*)(s_curValues+virtualIndex); +// return ReadBigEndian(buffers->s_curValues + virtualIndex); + return *(compareType*)(buffers->s_curValues+virtualIndex); } template unsigned short GetNumChangesFromVirtualIndex(unsigned int virtualIndex)