Browse Source

* minor fix in IGameCallback::getAllowedSpells

mateuszb 16 years ago
parent
commit
45e60cc826
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/IGameCallback.cpp

+ 1 - 1
lib/IGameCallback.cpp

@@ -200,7 +200,7 @@ void IGameCallback::getAllowedSpells(std::vector<ui16> &out, ui16 level)
 		spell = &(VLC->spellh->spells[i]);
 		if (isAllowed (0, spell->id) && spell->level == level)
 		{
-			out.push_back(i);
+			out.push_back(spell->id);
 		}
 	}
 }