summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 4a7704740..88f6fc6e9 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1702,7 +1702,9 @@ static int npc_parse_script(char *w1,char *w2,char *w3,char *w4,char *first_line
char srcname[128];
struct npc_data *nd2;
if( sscanf(w2,"duplicate(%[^)])",srcname)!=1 ){
- printf("bad duplicate name! : %s",w2);
+ printf("\n");
+ snprintf(tmp_output,sizeof(tmp_output),"Bad duplicate name! : %s",w2);
+ ShowWarning(tmp_output);
return 0;
}
if( (nd2=npc_name2id(srcname))==NULL ){