summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-16 13:31:54 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-16 13:31:54 +0000
commit2a5e9a504131fb04eb8ffcb6b11a2528a5825dc2 (patch)
tree8c2c24ff74e34bf83b30ec4f1e01030067f1f3eb /src
parentf7f400a57e387a1fa0ace5c768cfb07caa662448 (diff)
downloadhercules-2a5e9a504131fb04eb8ffcb6b11a2528a5825dc2.tar.gz
hercules-2a5e9a504131fb04eb8ffcb6b11a2528a5825dc2.tar.bz2
hercules-2a5e9a504131fb04eb8ffcb6b11a2528a5825dc2.tar.xz
hercules-2a5e9a504131fb04eb8ffcb6b11a2528a5825dc2.zip
Optimized. (What am I thinking)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6111 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/npc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index d593caca9..2d3428eec 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1840,10 +1840,7 @@ static int npc_parse_script (char *w1,char *w2,char *w3,char *w4,char *first_lin
nd = (struct npc_data *)aCalloc(1, sizeof(struct npc_data));
- if (m == -1){
- // スクリプトコピー用のダミーNPC
- class_ = -1;
- } else if (sscanf(w4, "%d,%d,%d", &class_, &xs, &ys) == 3) {
+ if (sscanf(w4, "%d,%d,%d", &class_, &xs, &ys) == 3) {
// 接触型NPC
int i, j;