summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2022-11-19 16:10:58 +0100
committerHoraK-FDF <horak-fdf@web.de>2022-11-19 16:10:58 +0100
commit70851d988c72b640b6757ecd1aaa489a2e7e9a8c (patch)
treef68f22eabbf8efc186e599ce3b0a447134345e59
parent5639f1abf0a3280b504de96800de37fe7a562912 (diff)
downloadtmwa-70851d988c72b640b6757ecd1aaa489a2e7e9a8c.tar.gz
tmwa-70851d988c72b640b6757ecd1aaa489a2e7e9a8c.tar.bz2
tmwa-70851d988c72b640b6757ecd1aaa489a2e7e9a8c.tar.xz
tmwa-70851d988c72b640b6757ecd1aaa489a2e7e9a8c.zip
summon fix
-rw-r--r--src/map/script-fun.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index 61b3eb7..ce80417 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -3057,7 +3057,7 @@ void builtin_summon(ScriptState *st)
Species monster_id = wrap<Species>(conv_num(st, &AARG(5)));
MonsterAttitude monster_attitude = static_cast<MonsterAttitude>(conv_num(st, &AARG(6)));
interval_t lifespan = static_cast<interval_t>(conv_num(st, &AARG(7)));
- if (HARG(7))
+ if (HARG(8))
extract(ZString(conv_str(st, &AARG(8))), &event);
if (!owner_e)