summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorasuratva <asuratva@proton.me>2024-05-15 21:03:15 +0530
committerasuratva <asuratva@proton.me>2024-05-15 21:03:15 +0530
commitfd3527d7c6e8d295fe4bfa2ff1838e03ff162c76 (patch)
treecb3feb74dcceab56a64d01b7b0ecbd41cd79a146 /src/map
parent18315186bd1dee9a6386c376ea78788c017fe3fe (diff)
downloadtmwa-fd3527d7c6e8d295fe4bfa2ff1838e03ff162c76.tar.gz
tmwa-fd3527d7c6e8d295fe4bfa2ff1838e03ff162c76.tar.bz2
tmwa-fd3527d7c6e8d295fe4bfa2ff1838e03ff162c76.tar.xz
tmwa-fd3527d7c6e8d295fe4bfa2ff1838e03ff162c76.zip
bugfix for previous commit. Need to wrap MobMode in bool()
Diffstat (limited to 'src/map')
-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 e85c9f7..6e32264 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -3737,7 +3737,7 @@ void builtin_issummon(ScriptState *st)
int val = 0;
if (md)
{
- val |= (md->mode & MobMode::SUMMONED);
+ val = bool(md->mode & MobMode::SUMMONED);
}
push_int<ScriptDataInt>(st->stack, val);