summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index ba4bb5083..b54edaab7 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2293,7 +2293,7 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type)
sprintf(buffer, "$@%d_attacker", md->bl.id);
set_var(NULL, buffer, (void *)src->id);
sprintf(buffer, "$@%d_attacktype", md->bl.id);
- set_var(NULL, buffer, (void *)src->type);
+ set_var(NULL, buffer, (void *)(int)src->type);
sprintf(buffer, "%s::OnDamage", md->nd->exname);
npc_event_do(buffer);
return 0;