aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/detection.cpp
diff options
context:
space:
mode:
authorMax Horn2014-03-30 19:48:08 +0200
committerMax Horn2014-03-30 19:48:08 +0200
commit8638b29b8933e1cee30c5bac8641278ba039a1f8 (patch)
tree144244ffedb02a7ca849e0b9dcfdd1dc9bd0e8f1 /engines/sci/detection.cpp
parent4d02f67bd1dc3b7fc9eb8729f92a4d5d41a6831a (diff)
downloadscummvm-rg350-8638b29b8933e1cee30c5bac8641278ba039a1f8.tar.gz
scummvm-rg350-8638b29b8933e1cee30c5bac8641278ba039a1f8.tar.bz2
scummvm-rg350-8638b29b8933e1cee30c5bac8641278ba039a1f8.zip
SCUMM: Avoid potential issues casting invalid values to enum
A compiler could in principle decide that a ResType enum can never equal 0xFF or 0xFFFF, and thus incorrectly optimize the ScummEngine::saveOrLoad code. So check the value *before* casting it.
Diffstat (limited to 'engines/sci/detection.cpp')
0 files changed, 0 insertions, 0 deletions