diff options
Diffstat (limited to 'engines/wage/util.cpp')
-rw-r--r-- | engines/wage/util.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/wage/util.cpp b/engines/wage/util.cpp index 1a6c01050b..0bed88e46f 100644 --- a/engines/wage/util.cpp +++ b/engines/wage/util.cpp @@ -51,19 +51,19 @@ namespace Wage { -Common::String readPascalString(Common::SeekableReadStream &in) { +Common::String readPascalString(Common::SeekableReadStream *in) { Common::String s; char *buf; int len; int i; - len = in.readSByte(); + len = in->readSByte(); if (len < 0) len += 256; buf = (char *)malloc(len + 1); for (i = 0; i < len; i++) { - buf[i] = in.readByte(); + buf[i] = in->readByte(); if (buf[i] == 0x0d) buf[i] = '\n'; } @@ -76,13 +76,13 @@ Common::String readPascalString(Common::SeekableReadStream &in) { return s; } -Common::Rect *readRect(Common::SeekableReadStream &in) { +Common::Rect *readRect(Common::SeekableReadStream *in) { int x1, y1, x2, y2; - y1 = in.readUint16BE(); - x1 = in.readUint16BE(); - y2 = in.readUint16BE() + 4; - x2 = in.readUint16BE() + 4; + y1 = in->readUint16BE(); + x1 = in->readUint16BE(); + y2 = in->readUint16BE() + 4; + x2 = in->readUint16BE() + 4; return new Common::Rect(x1, y1, x2, y2); } |