Jelajahi Sumber

* minor fix in IGameCallback::getAllowedSpells

mateuszb 16 tahun lalu
induk
melakukan
45e60cc826
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);
 		}
 	}
 }