diff SaveLoad.cpp @ 160:062e8a8e09bc

LoadWindow(work) 30.11.12
author Ritor1
date Fri, 30 Nov 2012 17:29:38 +0600
parents a64b244da76c
children af624eaf2fc5
line wrap: on
line diff
--- a/SaveLoad.cpp	Fri Nov 30 09:40:51 2012 +0600
+++ b/SaveLoad.cpp	Fri Nov 30 17:29:38 2012 +0600
@@ -344,6 +344,9 @@
   }
 
   assert(sizeof(SavegameHeader) == 100);
+  memset(header.pName, 0, 20);
+  memset(header.pLocationName, 0, 20);
+  memset(header.field_30, 0, 52);
   strcpy(header.pLocationName, pCurrentMapName);
   header.uWordTime = pParty->uTimePlayed;
   strcpy(pDir.pFilename, "header.bin");
@@ -666,7 +669,8 @@
 //----- (0045E297) --------------------------------------------------------
 void SavegameList::Initialize(unsigned int bHideEmptySlots)
 {
-  uNumSavegameFiles = 0;
+    memset(pSavegameList, 0, 0x3138);
+	uNumSavegameFiles = 0;
 
   _chdir("saves");
   {