summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-02-02 15:02:55 +0100
committerHaru <haru@dotalux.com>2015-02-02 15:02:55 +0100
commit5bb9e91e22a1b188210146579b441c9cbdd9880b (patch)
tree58035c624d15dfa3cec0cccec435985b7322537c /src/map/script.c
parentf0b095c85e75f71f425ec5f29fda8c22287185f0 (diff)
downloadhercules-5bb9e91e22a1b188210146579b441c9cbdd9880b.tar.gz
hercules-5bb9e91e22a1b188210146579b441c9cbdd9880b.tar.bz2
hercules-5bb9e91e22a1b188210146579b441c9cbdd9880b.tar.xz
hercules-5bb9e91e22a1b188210146579b441c9cbdd9880b.zip
Fixed state tracking of dialog windows when the script is suspended and resumed
- If a script was suspended, and then resumed (`sleep2`, but also `getexp`), state tracking of dialog windows would get reset, and a `close` or `close2` would trigger a warning even if a message box was present. - Special thanks to Dastgir. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index f50e56d2d..a0b9f80cc 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -3904,7 +3904,6 @@ void script_detach_state(struct script_state* st, bool dequeue_event) {
if(st->rid && (sd = map->id2sd(st->rid))!=NULL) {
sd->st = st->bk_st;
sd->npc_id = st->bk_npcid;
- sd->state.dialog = 0;
if(st->bk_st) {
//Remove tag for removal.
st->bk_st = NULL;