diff mm7_5.cpp @ 203:0c64754c7fd4

Voices work (at least in party creation screen)
author Nomad
date Sun, 17 Feb 2013 05:27:56 +0200
parents 30aa44013f7a
children 1bd823f52e3a f809f0465769
line wrap: on
line diff
--- a/mm7_5.cpp	Sun Feb 17 00:16:48 2013 +0200
+++ b/mm7_5.cpp	Sun Feb 17 05:27:56 2013 +0200
@@ -13148,7 +13148,7 @@
   //unsigned __int8 v8; // sf@8
   //unsigned __int8 v9; // of@8
   char pContainer[20]; // [sp+Ch] [bp-1Ch]@7
-  Texture *v11; // [sp+20h] [bp-8h]@5
+  //Texture *v11; // [sp+20h] [bp-8h]@5
   //int v12; // [sp+24h] [bp-4h]@5
 
   byte_506550 = 0;
@@ -13160,11 +13160,11 @@
   else
     dword_50654C = 0;
 
-  v11 = (Texture *)&pPlayer->field_152[11 * school + 63];
+  char *v11 = &pPlayer->field_152[11 * school + 63];
 
   for (uint i = 1; i < 12; ++i)
   {
-    if ( v11->pName[i] )
+    if (v11[i])
     {
       sprintf(pContainer, "SB%sS%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]);
       dword_506408[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE);