From 16c91bb089873729a0a923b267fb0f0afd980925 Mon Sep 17 00:00:00 2001 From: mekolat Date: Mon, 25 Apr 2016 16:17:45 -0400 Subject: yay! another bug! (move assert in builtin_explode) --- src/map/script-fun.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index 7379600..18d89a0 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -3592,9 +3592,11 @@ void builtin_explode(ScriptState *st) if (prefix == '.' && !name.startswith(".@"_s)) bl = map_id2bl(st->oid)->is_npc(); else if (prefix != '$' && prefix != '.') + { bl = map_id2bl(st->rid)->is_player(); + assert (bl); + } - assert (bl); for (int j = 0; j < 256; j++) { -- cgit v1.2.3-60-g2f50