diff --git a/src/bindings/bind_unit.c b/src/bindings/bind_unit.c index 186950b9c..1a7289326 100644 --- a/src/bindings/bind_unit.c +++ b/src/bindings/bind_unit.c @@ -509,7 +509,7 @@ static void unit_addspell(unit * u, const char * name) { sc_mage * m = get_mage(u); - spell * spadd = find_spell(M_NONE, name); + spell * spadd = find_spell(m->magietyp, name); if (!spadd) log_error(("spell %s could not be found\n", name)); else {