Increase fault tolerence re: wrongly implemented parsing for String.cpp

svn-id: r4443
This commit is contained in:
James Brown
2002-07-01 02:18:01 +00:00
parent 89381b6657
commit de3fed237f
+4 -2
View File
@@ -623,8 +623,10 @@ byte *Scumm::addMessageToStack(byte *msg)
if (ptr == NULL)
error("Message stack not allocated");
if (msg == NULL)
error("Bad message in addMessageToStack");
if (msg == NULL) {
warning("Bad message in addMessageToStack, ignoring");
return NULL;
}
while ((chr = *msg++) != 0) {
if (num > 500)