summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-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 bf8cbe293..e802e9228 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -184,7 +184,7 @@ int mob_once_spawn(struct map_session_data *sd,char *mapname,
md->spawndelay1=-1; // 一度のみフラグ
md->spawndelay2=-1; // 一度のみフラグ
- memcpy(md->npc_event,event,sizeof(md->npc_event));
+ memcpy(md->npc_event,event,strlen(event));
md->bl.type=BL_MOB;
map_addiddb(&md->bl);