summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 9fc552f5f..96093ffec 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2817,7 +2817,7 @@ ACMD(petfriendly)
return false;
}
- if (friendly < 0 || friendly > 1000)
+ if (friendly < PET_INTIMACY_NONE || friendly > PET_INTIMACY_MAX)
{
clif->message(fd, msg_fd(fd,37)); // An invalid number was specified.
return false;