diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-01-20 11:33:57 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-01-20 11:33:57 +0000 |
commit | 0d1b0c7063bf15d4f9da1f5d442696571d76f2ec (patch) | |
tree | 39c40256933042d2b2e77784edacf5b52b35049f | |
parent | 88381d2c98105e1b053e7af07dbceff381250657 (diff) | |
download | hercules-0d1b0c7063bf15d4f9da1f5d442696571d76f2ec.tar.gz hercules-0d1b0c7063bf15d4f9da1f5d442696571d76f2ec.tar.bz2 hercules-0d1b0c7063bf15d4f9da1f5d442696571d76f2ec.tar.xz hercules-0d1b0c7063bf15d4f9da1f5d442696571d76f2ec.zip |
Fixed a boolean operator mistake in @memo command, caused by r11625 (bugreport:2681).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13459 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/atcommand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index b74e0be87..91440bf0e 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2781,7 +2781,7 @@ int atcommand_memo(const int fd, struct map_session_data* sd, const char* comman return 0; } - if( position < 0 && position >= MAX_MEMOPOINTS ) + if( position < 0 || position >= MAX_MEMOPOINTS ) { sprintf(atcmd_output, "Please, enter a valid position (usage: @memo <memo_position:%d-%d>).", 0, MAX_MEMOPOINTS-1); clif_displaymessage(fd, atcmd_output); |