diff options
author | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-07 13:10:26 +0000 |
---|---|---|
committer | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-07 13:10:26 +0000 |
commit | 2426a5bf2f8b340763b515c1ef39afeeb57789ae (patch) | |
tree | 099e8d79c712405e8f1b9ef1fc18aa7c693a103b /src/map | |
parent | 804fbac07e5fdba9a7c49c3bc510f31acb4aa2f9 (diff) | |
download | hercules-2426a5bf2f8b340763b515c1ef39afeeb57789ae.tar.gz hercules-2426a5bf2f8b340763b515c1ef39afeeb57789ae.tar.bz2 hercules-2426a5bf2f8b340763b515c1ef39afeeb57789ae.tar.xz hercules-2426a5bf2f8b340763b515c1ef39afeeb57789ae.zip |
Fixed bugreport:6864 where casting WM_GLOOMYDAY to mobs causes map crash.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16865 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index b42e1b3a1..eff787956 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -8085,7 +8085,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val case SC_GLOOMYDAY: val2 = 20 + 5 * val1; // Flee reduction. val3 = 15 + 5 * val1; // ASPD reduction. - if( rand()%100 < val1 ){ // (Skill Lv) % + if( sd && rand()%100 < val1 ){ // (Skill Lv) % val4 = 1; // reduce walk speed by half. if( pc_isriding(sd) ) pc_setriding(sd, 0); if( pc_isridingdragon(sd) ) pc_setoption(sd, sd->sc.option&~OPTION_DRAGON); |