Fix debug build as C (#566)

* Clean up todo

* Fix debug build
This commit is contained in:
Anders Jenbo
2019-01-14 18:54:12 +01:00
committed by Robin Eklind
parent 3812287dd5
commit 429ececce0
4 changed files with 18 additions and 23 deletions
+3 -1
View File
@@ -95,7 +95,9 @@ void __cdecl TakeGoldCheat()
void __cdecl MaxSpellsCheat()
{
for (int i = 1; i < MAX_SPELLS; i++) {
int i;
for (i = 1; i < MAX_SPELLS; i++) {
if (spelldata[i].sBookLvl != -1) {
plr[myplr]._pMemSpells |= (__int64)1 << (i - 1);
plr[myplr]._pSplLvl[i] = 10;