summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 3033a281b..4385ef07d 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -3942,7 +3942,13 @@ BUILDIN(close2) {
if( sd == NULL )
return true;
- st->state = STOP;
+ if( sd->state.dialog == 1 )
+ st->state = STOP;
+ else {
+ ShowWarning("misuse of 'close2'! trying to use it without prior dialog! skipping...\n");
+ script_reportsrc(st);
+ }
+
clif->scriptclose(sd, st->oid);
return true;
}