diff options
author | Gregory Montoir | 2003-12-14 14:47:00 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-12-14 14:47:00 +0000 |
commit | cbcca65d067e576d46bd15b1240138524516bfb4 (patch) | |
tree | 19bfd1b0e775b8f29d2c0bb12d514595a6207dc4 /queen/command.cpp | |
parent | d4191c73912ab4b11a76759098430b2ed15144cc (diff) | |
download | scummvm-rg350-cbcca65d067e576d46bd15b1240138524516bfb4.tar.gz scummvm-rg350-cbcca65d067e576d46bd15b1240138524516bfb4.tar.bz2 scummvm-rg350-cbcca65d067e576d46bd15b1240138524516bfb4.zip |
add check before accessing ObjectData (only for safety)
svn-id: r11634
Diffstat (limited to 'queen/command.cpp')
-rw-r--r-- | queen/command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/queen/command.cpp b/queen/command.cpp index 873dcda549..29a48e4c48 100644 --- a/queen/command.cpp +++ b/queen/command.cpp @@ -391,7 +391,7 @@ int16 Command::executeCommand(uint16 comId, int16 condResult) { setItems(comId); } - if (com->imageOrder != 0) { + if (com->imageOrder != 0 && _state.subject[0] > 0) { ObjectData *od = _vm->logic()->objectData(_state.subject[0]); // we must update the graphic image of the object if (com->imageOrder < 0) { |