summaryrefslogtreecommitdiff
path: root/src/spells4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spells4.c')
-rw-r--r--src/spells4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spells4.c b/src/spells4.c
index 8bd63bb3..4fd51cbe 100644
--- a/src/spells4.c
+++ b/src/spells4.c
@@ -579,7 +579,7 @@ static bool_ call_spell_function(s32b s)
{
spell_type *spell = spell_at(s);
assert(spell->effect_func != NULL);
- return (spell->effect_func(-1) != NULL);
+ return (spell->effect_func(-1) != NO_CAST);
}
void lua_cast_school_spell(s32b s, bool_ no_cost)