diff mm7_1.cpp @ 702:efde64b3e147

sub_4BDAAF clean some Chest pointer fixes
author zipi
date Mon, 18 Mar 2013 20:19:20 +0000
parents 2dfb67633b01
children e39702f35283
line wrap: on
line diff
--- a/mm7_1.cpp	Mon Mar 18 22:53:56 2013 +0400
+++ b/mm7_1.cpp	Mon Mar 18 20:19:20 2013 +0000
@@ -3838,6 +3838,9 @@
       auto _w = (ItemGen *)(&pOtherOverlayList->pOverlays[49].field_4 + 2662 * (unsigned int)pChestWindow->ptr_1C
                                              + 18 * *((short *)&pChests[0].igChestItems[139].uExpireTime
                                                + v1 + 2662 * (unsigned int)pChestWindow->ptr_1C + 3));
+
+      _w = (ItemGen *)(&pChests[(unsigned int)pChestWindow->ptr_1C] -32 
+		  + 18 * *((short *)&pChests[(unsigned int)pChestWindow->ptr_1C].igChestItems[139].uExpireTime + v1 + 3));
       v2 = _w->GetDisplayName();
       sub_41C0B8_set_status_string(v2);
     }