Mercurial > mm7
diff mm7_5.cpp @ 43:196847ece26a
autosave slot fix
author | zipi |
---|---|
date | Mon, 21 Jan 2013 00:12:27 +0000 |
parents | 2bcc7b24c831 |
children | 9b4f8fe32a6e |
line wrap: on
line diff
--- 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;