summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-25 16:17:45 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-25 16:17:45 -0400
commit16c91bb089873729a0a923b267fb0f0afd980925 (patch)
treeba9633dbb7886147a34df0f1e641754b7278866d
parent11782a7183707e8e0a3ed6f6e183ccaf4a6de74d (diff)
downloadtmwa-16.4.25.2.tar.gz
tmwa-16.4.25.2.tar.bz2
tmwa-16.4.25.2.tar.xz
tmwa-16.4.25.2.zip
yay! another bug! (move assert in builtin_explode)v16.4.25.2
-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++)
{