From 743650506b3157d118c8d5497aeecdc64d851778 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 19 May 2009 20:30:57 +0000 Subject: [PATCH] Fix regression introduced in r40438. Saves were badly broken. svn-id: r40731 --- engines/agi/saveload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp index 54159aa6fad..1b694e711cc 100644 --- a/engines/agi/saveload.cpp +++ b/engines/agi/saveload.cpp @@ -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();