summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-28 03:16:39 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-28 03:16:39 +0000
commit671af9a4b431e291b086f8b4381f1f27f2bc2516 (patch)
tree07b04caabe6e9dc9db6222fc43f7e9432539255c /src
parent5c7144623089110df9bafed2cfd251954eaa6a80 (diff)
downloadhercules-671af9a4b431e291b086f8b4381f1f27f2bc2516.tar.gz
hercules-671af9a4b431e291b086f8b4381f1f27f2bc2516.tar.bz2
hercules-671af9a4b431e291b086f8b4381f1f27f2bc2516.tar.xz
hercules-671af9a4b431e291b086f8b4381f1f27f2bc2516.zip
- Fixed a missing initialization in run_script_main.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7933 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 0624e3047..b3f3e5355 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -2659,7 +2659,8 @@ void run_script_main(struct script_state *st)
int bk_npcid = 0;
struct script_stack *stack=st->stack;
- if(st->rid) sd = map_id2sd(st->rid);
+ sd = st->rid?map_id2sd(st->rid):NULL;
+
if(sd){
if(sd->st != st){
bk_st = sd->st;