diff options
author | Matthew Hoops | 2009-03-21 19:38:33 +0000 |
---|---|---|
committer | Matthew Hoops | 2009-03-21 19:38:33 +0000 |
commit | 8f9a655769ef0b5b96ee6f5626c59ab260ea8905 (patch) | |
tree | 5fcba2160fed4ac18e4f08f1374cb74f33de0a1e | |
parent | 11df88f9ee0c083d096fb06a54995dd6cb33f9e5 (diff) | |
download | scummvm-rg350-8f9a655769ef0b5b96ee6f5626c59ab260ea8905.tar.gz scummvm-rg350-8f9a655769ef0b5b96ee6f5626c59ab260ea8905.tar.bz2 scummvm-rg350-8f9a655769ef0b5b96ee6f5626c59ab260ea8905.zip |
Check for a suffix of "-iq" when saving the iq points. Should fix bug #2701064.
svn-id: r39597
-rw-r--r-- | engines/scumm/script_v5.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/script_v5.cpp b/engines/scumm/script_v5.cpp index be67778d4f..4072f8f720 100644 --- a/engines/scumm/script_v5.cpp +++ b/engines/scumm/script_v5.cpp @@ -2089,7 +2089,7 @@ void ScummEngine_v5::o5_roomOps() { while ((chr = fetchScriptByte())) filename += chr; - if (filename.hasPrefix("iq-")) { + if (filename.hasPrefix("iq-") || filename.hasSuffix("-iq")) { filename = _targetName + ".iq"; } else { error("SO_SAVE_STRING: Unsupported filename %s\n", filename.c_str()); @@ -2114,7 +2114,7 @@ void ScummEngine_v5::o5_roomOps() { while ((chr = fetchScriptByte())) filename += chr; - if (filename.hasPrefix("iq-")) { + if (filename.hasPrefix("iq-") || filename.hasSuffix("-iq")) { filename = _targetName + ".iq"; } else { error("SO_SAVE_STRING: Unsupported filename %s\n", filename.c_str()); |