aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-14 13:27:47 +0100
committerEugene Sandulenko2016-02-14 17:13:21 +0100
commit5e21a82c1eb9b9e46a3be63c0ab2d6768b943159 (patch)
treeef5bc1047cb71510f0c0827f8606712a2496fe27
parent96cb9a620ab9730eaef49f4f587371a21408df6b (diff)
downloadscummvm-rg350-5e21a82c1eb9b9e46a3be63c0ab2d6768b943159.tar.gz
scummvm-rg350-5e21a82c1eb9b9e46a3be63c0ab2d6768b943159.tar.bz2
scummvm-rg350-5e21a82c1eb9b9e46a3be63c0ab2d6768b943159.zip
WAGE: Simplify code
-rw-r--r--engines/wage/util.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/wage/util.cpp b/engines/wage/util.cpp
index 2586c2884e..51fcd2d6ec 100644
--- a/engines/wage/util.cpp
+++ b/engines/wage/util.cpp
@@ -57,10 +57,7 @@ Common::String readPascalString(Common::SeekableReadStream *in) {
int len;
int i;
- len = in->readSByte();
- if (len < 0)
- len += 256;
-
+ len = in->readByte();
buf = (char *)malloc(len + 1);
for (i = 0; i < len; i++) {
buf[i] = in->readByte();