aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/wagparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/wagparser.cpp b/engines/agi/wagparser.cpp
index adf5a0a6cf..5ada824f3b 100644
--- a/engines/agi/wagparser.cpp
+++ b/engines/agi/wagparser.cpp
@@ -180,7 +180,7 @@ bool WagFileParser::parse(const Common::FSNode &node) {
_parsedOk = false; // We haven't parsed the file yet
- stream = node.openForReading(); // Open the file
+ stream = node.createReadStream(); // Open the file
if (stream) { // Check that opening the file was succesful
if (checkWagVersion(*stream)) { // Check that WinAGI version string is valid
// It seems we've got a valid *.wag file so let's parse its properties from the start.