summaryrefslogtreecommitdiff
path: root/src/emap/status.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-30 21:10:18 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-30 21:10:18 +0300
commit2c9c1e2eb8e74a6f8d9765993365648555ddf9b0 (patch)
treeb2f83e8dda892954898205526bd0d4796ba52641 /src/emap/status.c
parentb826af28255cbd69318929aeb06b4164feed5588 (diff)
downloadplugin-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.tar.gz
plugin-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.tar.bz2
plugin-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.tar.xz
plugin-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.zip
Add missing checks.
Diffstat (limited to 'src/emap/status.c')
-rw-r--r--src/emap/status.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emap/status.c b/src/emap/status.c
index 893339a..2463254 100644
--- a/src/emap/status.c
+++ b/src/emap/status.c
@@ -94,6 +94,9 @@ int estatus_calc_pc_additional(struct map_session_data* sd,
hookStop();
+ if (!sd)
+ return 0;
+
for (f = 0; f < MAX_INVENTORY; f ++)
{
struct item_data *const item = sd->inventory_data[f];