Change an error to a warning

svn-id: r30363
This commit is contained in:
Filippos Karapetis 2008-01-09 22:58:55 +00:00
parent 3ed0ddd375
commit 1886d498ed

View File

@ -399,7 +399,9 @@ struct StringsTable {
const char *getString(int index) const {
if ((stringsCount <= index) || (index < 0)) {
error("StringList::getString wrong index 0x%X (%d)", index, stringsCount);
// This occurs at the end of Ted's chapter, right after the ending cutscene
warning("StringList::getString wrong index 0x%X (%d)", index, stringsCount);
return "";
}
return strings[index];
}