aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/cup_player_he.h
diff options
context:
space:
mode:
authorJohannes Schickel2014-08-24 00:36:32 +0200
committerJohannes Schickel2014-08-24 00:57:39 +0200
commitc5dfe1d917ac867204aa216565b246f2815fc726 (patch)
tree4093ea70ed9e9ee7f77601d16ef3d989b12a8fad /engines/scumm/he/cup_player_he.h
parent3612f88025c30dd04ddc1929812e9bc165f0e7ea (diff)
downloadscummvm-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