diff options
author | Matthew Hoops | 2010-05-12 01:22:37 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-05-12 01:22:37 +0000 |
commit | 47d6284c83352ad2429a2a535b53c02bb537867c (patch) | |
tree | e0ab5b0e55b6ad15028f983a5231a32f4daca9e8 | |
parent | 8b1cb63de3ca51fea0ee5fba96b32b39b5ab4fe5 (diff) | |
download | scummvm-rg350-47d6284c83352ad2429a2a535b53c02bb537867c.tar.gz scummvm-rg350-47d6284c83352ad2429a2a535b53c02bb537867c.tar.bz2 scummvm-rg350-47d6284c83352ad2429a2a535b53c02bb537867c.zip |
ListIndexOf can have a null object reference, so adjust its signature. GK1 no longer crashes when right clicking in the inventory.
svn-id: r49009
-rw-r--r-- | engines/sci/engine/kernel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp index 85c4150276..4700c59597 100644 --- a/engines/sci/engine/kernel.cpp +++ b/engines/sci/engine/kernel.cpp @@ -360,7 +360,7 @@ SciKernelFunction kfunct_mappers[] = { DEFUN("ListEachElementDo", kListEachElementDo, "li.*"), DEFUN("ListFirstTrue", kListFirstTrue, "li.*"), DEFUN("ListAllTrue", kListAllTrue, "li.*"), - DEFUN("ListIndexOf", kListIndexOf, "lo"), + DEFUN("ListIndexOf", kListIndexOf, "lZo"), DEFUN("OnMe", kOnMe, "iio.*"), DEFUN("InPolygon", kInPolygon, "iio"), DEFUN("CreateTextBitmap", kCreateTextBitmap, "iiio"), |