diff mm7_2.cpp @ 1211:fd3bea473c0c

fix HouseNpcdata array addresiing
author Gloval
date Sun, 09 Jun 2013 16:36:24 +0400
parents 8c02e6f74b29
children 68655becb94b
line wrap: on
line diff
--- a/mm7_2.cpp	Sun Jun 09 13:20:34 2013 +0400
+++ b/mm7_2.cpp	Sun Jun 09 16:36:24 2013 +0400
@@ -879,7 +879,7 @@
         //v3 = byte_591180;
         do
         {
-          HouseNPCData[v2 + 7] = (NPCData *)window_SpeakInHouse->CreateButton(pNPCPortraits_x[v1 - 1][v2], pNPCPortraits_y[v1 - 1][v2],
+          dword_5913F4[v2] = window_SpeakInHouse->CreateButton(pNPCPortraits_x[v1 - 1][v2], pNPCPortraits_y[v1 - 1][v2],
                                               0x3Fu, 0x49u, 1, 0, UIMSG_ClickHouseNPCPortrait, v2, 0, byte_591180[v2].data(), 0, 0, 0);
           v1 = uNumDialogueNPCPortraits;
           ++v2;