diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-30 21:10:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-30 21:10:18 +0300 |
commit | 2c9c1e2eb8e74a6f8d9765993365648555ddf9b0 (patch) | |
tree | b2f83e8dda892954898205526bd0d4796ba52641 /src/emap/horse.c | |
parent | b826af28255cbd69318929aeb06b4164feed5588 (diff) | |
download | evol-hercules-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.tar.gz evol-hercules-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.tar.bz2 evol-hercules-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.tar.xz evol-hercules-2c9c1e2eb8e74a6f8d9765993365648555ddf9b0.zip |
Add missing checks.
Diffstat (limited to 'src/emap/horse.c')
-rw-r--r-- | src/emap/horse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emap/horse.c b/src/emap/horse.c index f56926f..90c736e 100644 --- a/src/emap/horse.c +++ b/src/emap/horse.c @@ -21,7 +21,7 @@ void horse_add_bonus(TBL_PC *sd) { struct SessionExt *data = session_get_bysd(sd); - if (!data || data->mount == 0) + if (!sd || !data || data->mount == 0) return; struct status_data *bstatus = &sd->base_status; |