From ee76a93424cfc1d8e4008045eb6a87f9f8698ac2 Mon Sep 17 00:00:00 2001 From: ultramage Date: Tue, 20 Jan 2009 11:33:57 +0000 Subject: [PATCH] Fixed a boolean operator mistake in @memo command, caused by r11625 (bugreport:2681). git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13459 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/atcommand.c b/src/map/atcommand.c index b74e0be87c..91440bf0ee 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 ).", 0, MAX_MEMOPOINTS-1); clif_displaymessage(fd, atcmd_output);