diff UI/UISaveLoad.cpp @ 2174:5ca3251ea543

autosave continue
author Ritor1
date Tue, 21 Jan 2014 16:37:23 +0600
parents d28d3c006077
children e9625ad08541
line wrap: on
line diff
--- a/UI/UISaveLoad.cpp	Tue Jan 21 00:59:21 2014 +0600
+++ b/UI/UISaveLoad.cpp	Tue Jan 21 16:37:23 2014 +0600
@@ -253,8 +253,8 @@
   ++pIcons_LOD->uTexturePacksCount;
   if ( !pIcons_LOD->uNumPrevLoadedFiles )
     pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
-  memset(pSavegameUsedSlots.data(), 0, 0xB4u);
-  memset(&pSavegameThumbnails, 0, 0x708u);
+  memset(&pSavegameUsedSlots, 0, sizeof(pSavegameUsedSlots));
+  memset(&pSavegameThumbnails, 0, sizeof(pSavegameThumbnails));
   uTextureID_loadsave = pIcons_LOD->LoadTexture("loadsave", TEXTURE_16BIT_PALETTE);
   uTextureID_load_up = pIcons_LOD->LoadTexture("load_up", TEXTURE_16BIT_PALETTE);
   uTextureID_save_up = pIcons_LOD->LoadTexture("save_up", TEXTURE_16BIT_PALETTE);