diff options
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 2 |
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;
|