From edd67db458188a76934b963e6a40f7b681f86b3d Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 12 Oct 2013 18:41:40 -0700 Subject: Disallow unchecked being casts Despite the fact that that's what the code always did, it was sometimes wrong. --- src/map/magic-interpreter-base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/magic-interpreter-base.cpp') 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) dumb_ptr owner_bl = map_id2bl(invocation->subject); if (!owner_bl) return; - dumb_ptr owner = owner_bl->as_player(); + dumb_ptr owner = owner_bl->is_player(); spell_set_location(invocation, owner); } -- cgit v1.2.3-60-g2f50