Mercurial > mm7
diff mm7_4.cpp @ 321:15decc249a94
quick fix to spells commit (wasnt compiling)
author | Nomad |
---|---|
date | Wed, 20 Feb 2013 03:35:22 +0200 |
parents | 922a96fdcc86 |
children | d720a13e2273 |
line wrap: on
line diff
--- a/mm7_4.cpp Wed Feb 20 02:56:46 2013 +0200 +++ b/mm7_4.cpp Wed Feb 20 03:35:22 2013 +0200 @@ -5872,7 +5872,7 @@ int v9; // edx@31 char *v10; // ebx@37 Player *v11; // esi@38 - signed int uSpellBookPageCount; // ecx@40 + //signed int uSpellBookPageCount; // ecx@40 int v13; // eax@40 //signed int uSkillIdx; // eax@45 int v15; // eax@70 @@ -6010,13 +6010,14 @@ player->sResMagicBase = 10; //*((short *)v10 + 400) = 0; player->pPlayerBuffs[22].uExpireTime = 0; - uSpellBookPageCount = 0; for (uint j = 0; j < 9; j++) { if (player->pActiveSkills[PLAYER_SKILL_FIRE + j]) - ++uSpellBookPageCount; - } - player->lastOpenedSpellbookPage = uSpellBookPageCount; + { + player->lastOpenedSpellbookPage = j; + break; + } + } pItemsTable->GenerateItem(2, 40, &item); player->AddItem2(-1, &item); //uSkillIdx = 0;