Use new Common::String::printf

svn-id: r42744
This commit is contained in:
Willem Jan Palenstijn 2009-07-25 10:26:17 +00:00
parent 744112ceb0
commit e408870260

View File

@ -283,9 +283,7 @@ uint32 SciEngine::getFlags() const {
}
Common::String SciEngine::getSavegameName(int nr) const {
char extension[6];
snprintf(extension, sizeof(extension), ".%03d", nr);
return _targetName + extension;
return _targetName + Common::String::printf(".%03d", nr);
}
Common::String SciEngine::getSavegamePattern() const {