diff options
author | Eugene Sandulenko | 2016-01-27 11:11:59 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:12:54 +0100 |
commit | f813c0e556883254e9b9e2275535c4e7fc0859dc (patch) | |
tree | 673c6407d3f619d1f834b9dfcaef04a0cec89be0 /engines | |
parent | 34f9a1375dec7bf6b42104fd5ffed0c36c112130 (diff) | |
download | scummvm-rg350-f813c0e556883254e9b9e2275535c4e7fc0859dc.tar.gz scummvm-rg350-f813c0e556883254e9b9e2275535c4e7fc0859dc.tar.bz2 scummvm-rg350-f813c0e556883254e9b9e2275535c4e7fc0859dc.zip |
WAGE: Some renames
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/script.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index 78ec766358..bc43f2978b 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -384,15 +384,15 @@ void Script::assign(byte operandType, int uservar, uint16 value) { } Script::Operand *Script::readStringOperand() { - Common::String *sb; + Common::String *str; bool allDigits = true; - sb = new Common::String(); + str = new Common::String(); while (true) { byte c = _data->readByte(); if (c >= 0x20 && c < 0x80) - *sb += c; + *str += c; else break; if (c < '0' || c > '9') @@ -400,14 +400,14 @@ Script::Operand *Script::readStringOperand() { } _data->seek(-1, SEEK_CUR); - if (allDigits && sb->size() > 0) { - int r = atol(sb->c_str()); - delete sb; + if (allDigits && str->size() > 0) { + int r = atol(str->c_str()); + delete str; return new Operand(r, NUMBER); } else { // TODO: This string could be a room name or something like that. - return new Operand(sb, STRING); + return new Operand(str, STRING); } } |