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/party.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/party.cpp') diff --git a/src/map/party.cpp b/src/map/party.cpp index d0039de..0ba251f 100644 --- a/src/map/party.cpp +++ b/src/map/party.cpp @@ -685,7 +685,7 @@ void party_send_hp_check(dumb_ptr bl, int party_id, int *flag) dumb_ptr sd; nullpo_retv(bl); - sd = bl->as_player(); + sd = bl->is_player(); if (sd->status.party_id == party_id) { -- cgit v1.2.3-60-g2f50