summaryrefslogtreecommitdiff
path: root/src/emap/horse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/horse.c')
-rw-r--r--src/emap/horse.c2
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;