diff options
author | Johannes Schickel | 2014-08-24 00:36:32 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-08-24 00:57:39 +0200 |
commit | c5dfe1d917ac867204aa216565b246f2815fc726 (patch) | |
tree | 4093ea70ed9e9ee7f77601d16ef3d989b12a8fad /engines/scumm/he/cup_player_he.h | |
parent | 3612f88025c30dd04ddc1929812e9bc165f0e7ea (diff) | |
download | scummvm-rg350-c5dfe1d917ac867204aa216565b246f2815fc726.tar.gz scummvm-rg350-c5dfe1d917ac867204aa216565b246f2815fc726.tar.bz2 scummvm-rg350-c5dfe1d917ac867204aa216565b246f2815fc726.zip |
KYRA: Add safety checks for getProgram/getInstrument return values.
This fixes a crash in Hand of Fate when scaring off the rat by using the
swampsnake potion on Zanthia. This crash is timing sensitive since the game is
stopping the offending sound resource at this point. If it still gets to the
instruction setting up an invalid instrument, it will crash ScummVM with in
invalid read.
Diffstat (limited to 'engines/scumm/he/cup_player_he.h')
0 files changed, 0 insertions, 0 deletions