changeset 557:604d70894002

Saving works partly
author zipi
date Mon, 04 Mar 2013 20:18:06 +0000
parents 797e1ec9fb83
children 81856e97664f
files SaveLoad.cpp
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/SaveLoad.cpp	Mon Mar 04 20:05:05 2013 +0000
+++ b/SaveLoad.cpp	Mon Mar 04 20:18:06 2013 +0000
@@ -611,7 +611,7 @@
 {
   unsigned int v1; // esi@1
   int v2; // esi@2
-  RGBTexture *v3; // ebx@3
+  //RGBTexture *v3; // ebx@3
   int bNotArena; // [sp+2Ch] [bp-8h]@1
   unsigned int v6; // [sp+30h] [bp-4h]@1
 
@@ -638,14 +638,13 @@
   GUI_UpdateWindows();
   pGUIWindow_CurrentMenu->Release();
   pCurrentScreen = SCREEN_GAME;
-  v3 = pSavegameThumbnails;
+  //v3 = pSavegameThumbnails;
   viewparams->bRedrawGameUI = 1;
-  do
+  for(int i=0;i<45;i++)
   {
-    v3->Release();
-    ++v3;
+    pSavegameThumbnails[i].Release();
   }
-  while ( (signed int)v3 < (signed int)&unk_6A0758 );
+  //while ( (signed int)v3 < (signed int)&unk_6A0758 );
   if ( bNotArena )
     pNew_LOD->_4621A7();
   else