Skip to content

Commit

Permalink
WAGE: Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 14, 2016
1 parent 96cb9a6 commit 5e21a82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions engines/wage/util.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 5e21a82

Please sign in to comment.