summaryrefslogtreecommitdiff
path: root/src/spells4.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-05-28 07:55:57 +0200
committerBardur Arantsson <bardur@scientician.net>2012-05-29 21:43:56 +0200
commit77fcd7e02c87167002b8294a47c6cc37a0c960b3 (patch)
tree46d377f3994b514778162060f514d73359a942bb /src/spells4.c
parentf2b27a7ab74529504da68d418fdcecabd5ee989a (diff)
Lua: Reintroduce the "obvious" flag from casting
This got accidentally removed when moving the spell functions to C.
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)