Fix regression introduced in r40438. Saves were badly broken.

svn-id: r40731
This commit is contained in:
Eugene Sandulenko 2009-05-19 20:30:57 +00:00
parent e358b13ef9
commit 743650506b

View File

@ -510,7 +510,7 @@ int AgiEngine::loadGame(const char *fileName, bool checkId) {
const char *AgiEngine::getSavegameFilename(int num) {
static Common::String saveLoadSlot;
char extension[5];
snprintf(extension, sizeof(extension), ".%3d", num);
snprintf(extension, sizeof(extension), ".%.3d", num);
saveLoadSlot = _targetName + extension;
return saveLoadSlot.c_str();