diff options
author | Oliver Kiehl | 2003-09-13 13:05:52 +0000 |
---|---|---|
committer | Oliver Kiehl | 2003-09-13 13:05:52 +0000 |
commit | bd50e9f3d7ee0a0e89ccb954387232ab8d923c80 (patch) | |
tree | 79e771ae582df448ee40afe096e0aa4b2a96e1ac /sword2/speech.cpp | |
parent | d2e56ed4a2b7464644ceafce7a8f3469c7425d4c (diff) | |
download | scummvm-rg350-bd50e9f3d7ee0a0e89ccb954387232ab8d923c80.tar.gz scummvm-rg350-bd50e9f3d7ee0a0e89ccb954387232ab8d923c80.tar.bz2 scummvm-rg350-bd50e9f3d7ee0a0e89ccb954387232ab8d923c80.zip |
some more endian fixes
svn-id: r10224
Diffstat (limited to 'sword2/speech.cpp')
-rw-r--r-- | sword2/speech.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sword2/speech.cpp b/sword2/speech.cpp index 18c57be888..6df23d61ec 100644 --- a/sword2/speech.cpp +++ b/sword2/speech.cpp @@ -1446,8 +1446,7 @@ int32 FN_i_speak(int32 *params) //Tony18Oct96 (revamped by James01july97) local_text = params[S_TEXT]&0xffff; text = FetchTextLine( res_man.Res_open(text_res), local_text ); // open text file & get the line - //officialTextNumber = *(uint16*)text; // 1st word of text line is the official line number (this doesn't work on PSX) - memcpy(&officialTextNumber, text, 2); // this works on PSX & PC + officialTextNumber = READ_LE_UINT16(text); res_man.Res_close(text_res); // now ok to close the text file |