summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script-fun.cpp4
1 files changed, 3 insertions, 1 deletions
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++)
{