diff options
author | Filippos Karapetis | 2014-12-03 00:55:14 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-03 00:55:14 +0200 |
commit | 7976a34bbfbece2686712d80b1efa3612cb2b441 (patch) | |
tree | bad44b410f26dfb6f3ab82ebc04e7553c45187f3 /engines/zvision | |
parent | daeb1ea288ee8ae9742f0a0fa41aeaea8c41bc9e (diff) | |
download | scummvm-rg350-7976a34bbfbece2686712d80b1efa3612cb2b441.tar.gz scummvm-rg350-7976a34bbfbece2686712d80b1efa3612cb2b441.tar.bz2 scummvm-rg350-7976a34bbfbece2686712d80b1efa3612cb2b441.zip |
ZVISION: Rename struct member to fix compilation with MSVC
A struct member can't have the same name as the struct itself
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/subtitles/subtitles.cpp | 6 | ||||
-rw-r--r-- | engines/zvision/subtitles/subtitles.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/zvision/subtitles/subtitles.cpp b/engines/zvision/subtitles/subtitles.cpp index 1f68b2435f..d36eb24923 100644 --- a/engines/zvision/subtitles/subtitles.cpp +++ b/engines/zvision/subtitles/subtitles.cpp @@ -55,7 +55,7 @@ Subtitle::Subtitle(ZVision *engine, const Common::String &subname) : sub curSubtitle; curSubtitle.start = -1; curSubtitle.stop = -1; - curSubtitle.sub = txtline; + curSubtitle.subStr = txtline; _subs.push_back(curSubtitle); } @@ -98,9 +98,9 @@ void Subtitle::process(int32 time) { } if (j != -1 && j != _subId) { - if (_subs[j].sub.size()) + if (_subs[j].subStr.size()) if (_areaId != -1) - _engine->getRenderManager()->updateSubArea(_areaId, _subs[j].sub); + _engine->getRenderManager()->updateSubArea(_areaId, _subs[j].subStr); _subId = j; } } diff --git a/engines/zvision/subtitles/subtitles.h b/engines/zvision/subtitles/subtitles.h index 09e079bba4..c3da6583a4 100644 --- a/engines/zvision/subtitles/subtitles.h +++ b/engines/zvision/subtitles/subtitles.h @@ -43,7 +43,7 @@ private: struct sub { int start; int stop; - Common::String sub; + Common::String subStr; }; Common::Array<sub> _subs; |