diff options
author | Martin Kiewitz | 2010-01-04 22:23:45 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-04 22:23:45 +0000 |
commit | a6aaeb70e6dfb3a9727e8861041601cf658aa5cd (patch) | |
tree | df1510727c3dc67055d89f8c46a26c7d64bd7e1c /engines/sci/engine | |
parent | 05a16d7cba889c3daf947a727917ce2dc9bd1eab (diff) | |
download | scummvm-rg350-a6aaeb70e6dfb3a9727e8861041601cf658aa5cd.tar.gz scummvm-rg350-a6aaeb70e6dfb3a9727e8861041601cf658aa5cd.tar.bz2 scummvm-rg350-a6aaeb70e6dfb3a9727e8861041601cf658aa5cd.zip |
SCI: fix crash due accessing invalid object (implemented deleteScreenitem)
svn-id: r46993
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kernel32.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp index 0acc49311b..753fd6f133 100644 --- a/engines/sci/engine/kernel32.cpp +++ b/engines/sci/engine/kernel32.cpp @@ -676,6 +676,10 @@ reg_t kUpdateScreenItem(EngineState *s, int argc, reg_t *argv) { } reg_t kDeleteScreenItem(EngineState *s, int argc, reg_t *argv) { + reg_t viewObj = argv[0]; + + s->_gui->deleteScreenItem(viewObj); + /* reg_t viewObj = argv[0]; uint16 viewId = GET_SEL32V(s->_segMan, viewObj, view); |