mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Increase fault tolerence re: wrongly implemented parsing for String.cpp
svn-id: r4443
This commit is contained in:
+4
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user