summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index bc87f8c0b..233648a4d 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10112,7 +10112,7 @@ int buildin_atcommand(struct script_state *st)
if (sd){
if(cmd[0] != '@'){
cmd += strlen(sd->status.name);
- while(*cmd != '@' && cmd != 0)
+ while(*cmd != '@' && *cmd != 0)
cmd++;
}
atcommand_sub(sd->fd, sd, cmd, 99);
@@ -10128,7 +10128,7 @@ int buildin_atcommand(struct script_state *st)
}
if(cmd[0] != '@'){
cmd += strlen(dummy_sd.status.name);
- while(*cmd != '@' && cmd != 0)
+ while(*cmd != '@' && *cmd != 0)
cmd++;
}
atcommand_sub(0, &dummy_sd, cmd, 99);
@@ -10150,7 +10150,7 @@ int buildin_charcommand(struct script_state *st)
if (sd){
if(cmd[0] != '#'){
cmd += strlen(sd->status.name);
- while(*cmd != '#' && cmd != 0)
+ while(*cmd != '#' && *cmd != 0)
cmd++;
}
charcommand_sub(sd->fd, sd, cmd,99);
@@ -10166,7 +10166,7 @@ int buildin_charcommand(struct script_state *st)
}
if(cmd[0] != '#'){
cmd += strlen(dummy_sd.status.name);
- while(*cmd != '#' && cmd != 0)
+ while(*cmd != '#' && *cmd != 0)
cmd++;
}
charcommand_sub(0, &dummy_sd, cmd, 99);