diff options
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index e239ce836..ba4bb5083 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2291,9 +2291,9 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type) if(src){
if(md->nd){
sprintf(buffer, "$@%d_attacker", md->bl.id);
- set_var(NULL, buffer, src->id);
+ set_var(NULL, buffer, (void *)src->id);
sprintf(buffer, "$@%d_attacktype", md->bl.id);
- set_var(NULL, buffer, src->type);
+ set_var(NULL, buffer, (void *)src->type);
sprintf(buffer, "%s::OnDamage", md->nd->exname);
npc_event_do(buffer);
return 0;
|