[Scummvm-tracker] [ScummVM :: Bugs] #11528: ILLUSIONS: Duckman - Crash after option menu "times out"

ScummVM :: Bugs trac at scummvm.org
Fri Jul 2 21:19:08 UTC 2021


#11528: ILLUSIONS: Duckman - Crash after option menu "times out"
--------------------+--------------------------------
Reporter:  raziel-  |       Owner:  (none)
    Type:  defect   |      Status:  new
Priority:  normal   |   Component:  Engine: Illusions
 Version:           |  Resolution:
Keywords:  Duckman  |        Game:
--------------------+--------------------------------
Comment (by dwatteau):

 Around line 55, in the TalkEntry::load() function at the top of
 engines/illusions/resources/talkresource.cpp.

 {{{
 diff --git a/engines/illusions/resources/talkresource.cpp
 b/engines/illusions/resources/talkresource.cpp
 index 83ff98a9a7..776f89e15a 100644
 --- a/engines/illusions/resources/talkresource.cpp
 +++ b/engines/illusions/resources/talkresource.cpp
 @@ -52,7 +52,7 @@ void TalkEntry::load(byte *dataStart,
 Common::SeekableReadStream &stream) {
                 _talkId, textOffs, tblOffs, voiceNameOffs);

  #if defined(SCUMM_BIG_ENDIAN)
 -       for (byte *ptr = (byte *)_text; ptr != _tblPtr; ptr += 2) {
 +       for (byte *ptr = (byte *)_text; *ptr != 0; ptr += 2) {
                 WRITE_UINT16(ptr, SWAP_BYTES_16(READ_UINT16(ptr)));
         }
  #endif
 }}}

 (n.b. "ptr" also becomes "*ptr", don't forget that added symbol.)
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/11528#comment:22>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list