diff --git a/src/ccutil/serialis.cpp b/src/ccutil/serialis.cpp index 2086bc5b..895b5458 100644 --- a/src/ccutil/serialis.cpp +++ b/src/ccutil/serialis.cpp @@ -166,7 +166,7 @@ char* TFile::FGets(char* buffer, int buffer_size) { int TFile::FReadEndian(void* buffer, size_t size, int count) { int num_read = FRead(buffer, size, count); - if (swap_) { + if (swap_ && size != 1) { char* char_buffer = static_cast(buffer); for (int i = 0; i < num_read; ++i, char_buffer += size) { ReverseN(char_buffer, size);