diff options
author | Johannes Schickel | 2010-08-01 17:59:14 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-08-01 17:59:14 +0000 |
commit | 4423ad9333c000861fafb485c975dbac47e154ac (patch) | |
tree | 37162000795254d8ad15a1d416ee3830f531ce00 /engines | |
parent | 79bf94c87729506b556f66d15ea30827b509451a (diff) | |
download | scummvm-rg350-4423ad9333c000861fafb485c975dbac47e154ac.tar.gz scummvm-rg350-4423ad9333c000861fafb485c975dbac47e154ac.tar.bz2 scummvm-rg350-4423ad9333c000861fafb485c975dbac47e154ac.zip |
SCI: Cleanup.
svn-id: r51584
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kernel.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp index 794279bd87..73fb3de062 100644 --- a/engines/sci/engine/kernel.cpp +++ b/engines/sci/engine/kernel.cpp @@ -56,11 +56,8 @@ const Common::String &Kernel::getSelectorName(uint selector) { // This should only occur in games w/o a selector-table // We need this for proper workaround tables // TODO: maybe check, if there is a fixed selector-table and error() out in that case - for (uint loopSelector = _selectorNames.size(); loopSelector <= selector; loopSelector++) { - Common::String newSelectorName; - newSelectorName = newSelectorName.printf("<noname%d>", loopSelector); - _selectorNames.push_back(newSelectorName); - } + for (uint loopSelector = _selectorNames.size(); loopSelector <= selector; ++loopSelector) + _selectorNames.push_back(Common::String::printf("<noname%d>", loopSelector)); } return _selectorNames[selector]; } |