summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-28 02:02:30 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-28 02:02:30 +0000
commit14fedfe759f6dc32c0556421f4c76bf43ac32c3b (patch)
tree6a72035a35f86151cf3cf27ff2eb40e472b6341d /src/map/script.h
parent6443340e27014f2646c06b43dd5bf474ab6f66c7 (diff)
downloadhercules-14fedfe759f6dc32c0556421f4c76bf43ac32c3b.tar.gz
hercules-14fedfe759f6dc32c0556421f4c76bf43ac32c3b.tar.bz2
hercules-14fedfe759f6dc32c0556421f4c76bf43ac32c3b.tar.xz
hercules-14fedfe759f6dc32c0556421f4c76bf43ac32c3b.zip
* Fixed a crash uncovered with r14501, caused by outdated local variables when a script is about to suspend or terminate (bugreport:4577).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14511 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index aa6b85140..8e9acabaf 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -121,6 +121,9 @@ struct script_state {
int tick,timer,charid;
} sleep;
int instance_id;
+ //For backing up purposes
+ struct script_state *bk_st;
+ int bk_npcid;
};
struct script_reg {