fixed bug in Gui::queryString where -1 was used to index an array. (Thanks drigo)

svn-id: r3547
This commit is contained in:
Ludvig Strigeus 2002-01-23 17:27:26 +00:00
parent ed0212bdb1
commit 9ffa30a3c2

View File

@ -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 {