diff options
Diffstat (limited to 'engines/cine/texte.cpp')
-rw-r--r-- | engines/cine/texte.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/cine/texte.cpp b/engines/cine/texte.cpp index 3d87870068..277aeb07a8 100644 --- a/engines/cine/texte.cpp +++ b/engines/cine/texte.cpp @@ -45,11 +45,8 @@ void loadTextData(const char *pFileName, uint8 *pDestinationBuffer) { assert(pFileHandle.isOpen()); - pFileHandle.read(&entrySize, 2); - flipU16(&entrySize); - - pFileHandle.read(&numEntry, 2); - flipU16(&numEntry); + entrySize = pFileHandle.readUint16BE(); + numEntry = pFileHandle.readUint16BE(); dataSize = numEntry * entrySize; pFileHandle.read(pDestinationBuffer, numEntry * entrySize); |