Mercurial > might-and-magic-trilogy
diff GUIWindow.cpp @ 54:c28452924144
PLAYER_CLASS_TYPE
PlayerCreationUI_Draw
author | Ritor1 |
---|---|
date | Wed, 24 Oct 2012 17:54:35 +0600 |
parents | 25fabc49627b |
children | 30ec77bbd018 |
line wrap: on
line diff
--- a/GUIWindow.cpp Tue Oct 23 17:34:20 2012 +0600 +++ b/GUIWindow.cpp Wed Oct 24 17:54:35 2012 +0600 @@ -1238,15 +1238,15 @@ v1 = pPlayers[uActiveCharacter]; v2 = this; - LoadSpellbook(v1->field_1A4E); + LoadSpellbook(v1->pNumSpellBookPage); v3 = 0; a2 = 0; - v7 = (int)(&v1->spellbook.pFireSpellbook + v1->field_1A4E); + v7 = (int)(&v1->spellbook.pFireSpellbook + v1->pNumSpellBookPage); do { if ( *(char *)(v7 + v3) ) { - v4 = 2 * (12 * v1->field_1A4E + (unsigned __int8)*(&byte_4E2431[12 * v1->field_1A4E] + v3)); + v4 = 2 * (12 * v1->pNumSpellBookPage + (unsigned __int8)*(&byte_4E2431[12 * v1->pNumSpellBookPage] + v3)); v2->CreateButton( pViewport->uViewportX + dword_4E20D0[v4], pViewport->uViewportY + dword_4E20D0[v4 + 1],