summaryrefslogtreecommitdiff
path: root/src/map/magic-interpreter-base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/magic-interpreter-base.cpp')
-rw-r--r--src/map/magic-interpreter-base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/magic-interpreter-base.cpp b/src/map/magic-interpreter-base.cpp
index 09656c6..e86e86b 100644
--- a/src/map/magic-interpreter-base.cpp
+++ b/src/map/magic-interpreter-base.cpp
@@ -415,7 +415,7 @@ void spell_update_location(dumb_ptr<invocation> invocation)
dumb_ptr<block_list> owner_bl = map_id2bl(invocation->subject);
if (!owner_bl)
return;
- dumb_ptr<map_session_data> owner = owner_bl->as_player();
+ dumb_ptr<map_session_data> owner = owner_bl->is_player();
spell_set_location(invocation, owner);
}