diff options
Diffstat (limited to 'engines/kyra/saveload.cpp')
-rw-r--r-- | engines/kyra/saveload.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/saveload.cpp b/engines/kyra/saveload.cpp index 358f61addf..c348c622a9 100644 --- a/engines/kyra/saveload.cpp +++ b/engines/kyra/saveload.cpp @@ -188,6 +188,9 @@ Common::OutSaveFile *KyraEngine::openSaveForWriting(const char *filename, const const char *KyraEngine::getSavegameFilename(int num) { static Common::String filename; + + assert(num >= 0 && num <= 999); + char extension[5]; sprintf(extension, "%.3d", num); |