# HG changeset patch # User zipi # Date 1358727147 0 # Node ID 196847ece26a13cc56ae65062f7cd7bd2eec1406 # Parent 2bcc7b24c831ab98a8914261b8d216ad0f25b625 autosave slot fix diff -r 2bcc7b24c831 -r 196847ece26a GameUIs.cpp --- a/GameUIs.cpp Sun Jan 20 21:58:23 2013 +0000 +++ b/GameUIs.cpp Mon Jan 21 00:12:27 2013 +0000 @@ -98,7 +98,7 @@ if ( v4 ) fread(&pSavegameHeader[i], 0x64, 1, v4); if ( !_strcmpi(pSavegameList->pSavesNames[i], pGlobalTXT_LocalizationStrings[613]) )// "AutoSave.MM7" - strcpy(pSavegameList->pSavesNames[i], pGlobalTXT_LocalizationStrings[16]);// "Autosave" + strcpy(pSavegameHeader[i].pName, pGlobalTXT_LocalizationStrings[16]);// "Autosave" v5 = pLODFile.FindContainer("image.pcx", true); if ( !v5 ) { diff -r 2bcc7b24c831 -r 196847ece26a mm7_5.cpp --- a/mm7_5.cpp Sun Jan 20 21:58:23 2013 +0000 +++ b/mm7_5.cpp Mon Jan 21 00:12:27 2013 +0000 @@ -546,8 +546,8 @@ else { pKeyActionMap->EnterText(0, 19, pGUIWindow_CurrentMenu); - if ( strcmp((const char *)&pSavegameHeader + 100 * uLoadGameUI_SelectedSlot, pGlobalTXT_LocalizationStrings[72]) )// "Empty" - strcpy((char *)pKeyActionMap->pPressedKeysBuffer, (const char *)&pSavegameHeader + 100 * uLoadGameUI_SelectedSlot); + if ( strcmp((const char *)&pSavegameHeader[uLoadGameUI_SelectedSlot], pGlobalTXT_LocalizationStrings[72]) )// "Empty" + strcpy((char *)pKeyActionMap->pPressedKeysBuffer, (const char *)&pSavegameHeader[uLoadGameUI_SelectedSlot]); pKeyActionMap->uNumKeysPressed = strlen((const char *)pKeyActionMap->pPressedKeysBuffer); } continue;