Kaynağa Gözat

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
ultramage 16 yıl önce
ebeveyn
işleme
ee76a93424
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/map/atcommand.c

+ 1 - 1
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);