summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorTAW Dev <tawdev@taw>2009-07-08 11:04:59 -0400
committerTAW Dev <tawdev@taw>2009-07-08 11:04:59 -0400
commitaa0bb68d762f72d8abb2b71079e98a8e27969412 (patch)
tree77e38010cc0443cc7480572e823dd13ee7ee555d /src/map/npc.c
parente9c1a79b6306783d63655eca5ddbcca0b6d825d0 (diff)
parent4673fd3ca06010e74f8223486b0f34e58c7b0a7e (diff)
downloadtmwa-aa0bb68d762f72d8abb2b71079e98a8e27969412.tar.gz
tmwa-aa0bb68d762f72d8abb2b71079e98a8e27969412.tar.bz2
tmwa-aa0bb68d762f72d8abb2b71079e98a8e27969412.tar.xz
tmwa-aa0bb68d762f72d8abb2b71079e98a8e27969412.zip
Merge branch 'master' of git://gitorious.org/tmw-eathena/mainline
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 11725b3..5fe190b 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -21,6 +21,7 @@
#include "pc.h"
#include "script.h"
#include "skill.h"
+#include "../common/socket.h"
#ifdef MEMWATCH
#include "memwatch.h"
@@ -2008,7 +2009,7 @@ int do_init_npc(void)
free(nsl->prev);
nsl->prev = NULL;
}
- fp=fopen(nsl->name,"r");
+ fp=fopen_(nsl->name,"r");
if (fp==NULL) {
printf("file not found : %s\n",nsl->name);
exit(1);
@@ -2065,7 +2066,7 @@ int do_init_npc(void)
npc_parse_mapflag(w1,w2,w3,w4);
}
}
- fclose(fp);
+ fclose_(fp);
printf("\rLoading NPCs [%d]: %-54s",npc_id-START_NPC_NUM,nsl->name);
fflush(stdout);
}