diff options
author | Ludvig Strigeus | 2002-01-23 17:27:26 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2002-01-23 17:27:26 +0000 |
commit | 9ffa30a3c28e20a79ded8584e01c203e2feda5a9 (patch) | |
tree | af8c0ebbd5ab7a49df184a2ee77c433242c53482 | |
parent | ed0212bdb1e301f693bc31a6f00b822d9db86951 (diff) | |
download | scummvm-rg350-9ffa30a3c28e20a79ded8584e01c203e2feda5a9.tar.gz scummvm-rg350-9ffa30a3c28e20a79ded8584e01c203e2feda5a9.tar.bz2 scummvm-rg350-9ffa30a3c28e20a79ded8584e01c203e2feda5a9.zip |
fixed bug in Gui::queryString where -1 was used to index an array. (Thanks drigo)
svn-id: r3547
-rw-r--r-- | gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -386,6 +386,9 @@ const char *Gui::queryString(int string, int id) { return namebuf; } + if (string == 0) + return NULL; + if (_s->_features&GF_AFTER_V6) { string = _s->_vars[string_map_table_v6[string-1]]; } else { |