diff SaveLoad.h @ 2180:147ee4591b76

pSavegameList->Reset()
author Ritor1
date Wed, 22 Jan 2014 18:53:47 +0600
parents ab6560001f5b
children 5d263539bbec
line wrap: on
line diff
--- a/SaveLoad.h	Wed Jan 22 17:34:05 2014 +0600
+++ b/SaveLoad.h	Wed Jan 22 18:53:47 2014 +0600
@@ -14,14 +14,18 @@
 struct SavegameList
 {
   static void Initialize(unsigned int a1);
+  SavegameList() {Reset();}
 
-  /*inline void Reset()
+  inline void Reset()
   {
-    for (int i = 0; i < 20; ++i)
-      field_0[i] = 0;
-    for (int i = 0; i < 44; ++i)
-      pSavesNames[i][0] = 0;
-  }*/
+    for ( int j = 0; j < 45; j++ )
+    {
+      for (int i = 0; i < 20; ++i)
+        this->pFileList[j].field_0[i] = 0;
+      for (int i = 0; i < 260; ++i)
+        this->pFileList[j].pSaveFileName[i] = 0;
+    }
+  }
   SaveFile_ pFileList[45];
   
 };