summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-08-29 04:14:17 +0000
committerFate <fate-tmw@googlemail.com>2009-08-29 04:14:17 +0000
commit3e35855d56e8a20959520e921b19832b2b5eaf8f (patch)
tree209c37f27251e45fa1e20331337506240510ae94 /src/map/map.c
parent6ff9a550e3f22eaa906722143f94b75666ebbd30 (diff)
downloadtmwa-3e35855d56e8a20959520e921b19832b2b5eaf8f.tar.gz
tmwa-3e35855d56e8a20959520e921b19832b2b5eaf8f.tar.bz2
tmwa-3e35855d56e8a20959520e921b19832b2b5eaf8f.tar.xz
tmwa-3e35855d56e8a20959520e921b19832b2b5eaf8f.zip
If a spell is continued via the NPC handler callback, double-check that it is really waiting for a script. This fixes #755 and #733.
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 86acb62..b1ac9e3 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1906,7 +1906,7 @@ map_scriptcont(struct map_session_data *sd, int id)
switch (bl->type) {
case BL_NPC: return npc_scriptcont(sd, id);
case BL_SPELL:
- spell_execute((struct invocation *) bl);
+ spell_execute_script((struct invocation *) bl);
break;
}