diff options
Diffstat (limited to 'engines/kyra/gui_lok.cpp')
-rw-r--r-- | engines/kyra/gui_lok.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/kyra/gui_lok.cpp b/engines/kyra/gui_lok.cpp index b7952eb81e..3560478a1b 100644 --- a/engines/kyra/gui_lok.cpp +++ b/engines/kyra/gui_lok.cpp @@ -564,7 +564,6 @@ int GUI_LoK::resumeGame(Button *button) { void GUI_LoK::setupSavegames(Menu &menu, int num) { Common::InSaveFile *in; - static char savenames[5][35]; uint8 startSlot; assert(num <= 5); @@ -583,11 +582,11 @@ void GUI_LoK::setupSavegames(Menu &menu, int num) { KyraEngine_LoK::SaveHeader header; for (int i = startSlot; i < num && uint(_savegameOffset + i) < _saveSlots.size(); i++) { if ((in = _vm->openSaveForReading(_vm->getSavegameFilename(_saveSlots[i + _savegameOffset]), header))) { - Common::strlcpy(savenames[i], header.description.c_str(), ARRAYSIZE(savenames[0])); + Common::strlcpy(_savegameNames[i], header.description.c_str(), ARRAYSIZE(_savegameNames[0])); - Util::convertISOToDOS(savenames[i]); + Util::convertISOToDOS(_savegameNames[i]); - menu.item[i].itemString = savenames[i]; + menu.item[i].itemString = _savegameNames[i]; menu.item[i].enabled = 1; menu.item[i].saveSlot = _saveSlots[i + _savegameOffset]; delete in; |