diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-15 21:49:21 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-15 21:49:21 +0000 |
commit | fd6ff31e591191e8f6bbf2dee4bfe9001cc14395 (patch) | |
tree | 43c82e038c108ff8d6fba03f5b939d9010b6cbcd /src/map/npc.c | |
parent | 1b0780d6839a63bfaf4ff5b0287aa83605d817d9 (diff) | |
download | hercules-fd6ff31e591191e8f6bbf2dee4bfe9001cc14395.tar.gz hercules-fd6ff31e591191e8f6bbf2dee4bfe9001cc14395.tar.bz2 hercules-fd6ff31e591191e8f6bbf2dee4bfe9001cc14395.tar.xz hercules-fd6ff31e591191e8f6bbf2dee4bfe9001cc14395.zip |
Getting some (mostly atcommand) code cleaning out of the way...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11222 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index c2ab39446..4adf4b946 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1698,7 +1698,7 @@ static int npc_parse_shop(char* w1, char* w2, char* w3, char* w4) } else { // 引数の個数チェック char mapname[MAP_NAME_LENGTH_EXT]; - if (sscanf(w1, "%15[^,],%d,%d,%d", mapname, &x, &y, &dir) < 4 || strchr(w4, ',') == NULL) { + if (sscanf(w1, "%15[^,],%d,%d,%d", mapname, &x, &y, &dir) != 4 || strchr(w4, ',') == NULL) { ShowError("bad shop line : %s\n", w3); return 1; } |