summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-07-09 00:19:37 -0300
committerpanikon <panikon@zoho.com>2014-07-09 00:19:37 -0300
commit29de937a2d8b485498fa9ce573efebfb64e8d669 (patch)
tree62dcf35fc2fba45c7a108c3d60046a741b0a50df /src/map/status.c
parent7cd967f812ab741c41c416fb9f7c2a921c36e947 (diff)
downloadhercules-29de937a2d8b485498fa9ce573efebfb64e8d669.tar.gz
hercules-29de937a2d8b485498fa9ce573efebfb64e8d669.tar.bz2
hercules-29de937a2d8b485498fa9ce573efebfb64e8d669.tar.xz
hercules-29de937a2d8b485498fa9ce573efebfb64e8d669.zip
Fixed status_calc_regen crash issue:http://hercules.ws/board/tracker/issue-1298-mapserver-crashed-item-check/
Follow up to 7cd967f812ab741c41c416fb9f7c2a921c36e947
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index d108d8cfa..499c50e3b 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3413,6 +3413,7 @@ int status_calc_npc_(struct npc_data *nd, enum e_status_calc_opt opt) {
void status_calc_regen(struct block_list *bl, struct status_data *st, struct regen_data *regen) {
struct map_session_data *sd;
int val, skill_lv, reg_flag;
+ nullpo_retv(bl);
if( !(bl->type&BL_REGEN) || !regen )
return;