From 0a21b3250da89a79769f40ad8244de7898e549fe Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 5 Mar 2008 16:23:02 +0000 Subject: * Added code to clear the Illusionary Shadow effect (followup to r12293) * Added some trim() calls into mapflag code (followup to r12238) * Fixed mvp exp reward packet not working right for big values * Added dbghelpplug plugin entry to the plugins configuration file * Added conf setting for auction table name (see r12287) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12300 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index dbb9c1aed..702a7550d 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -8540,14 +8540,14 @@ static AtCommandInfo* get_atcommandinfo_byname(const char* name) int i; if( *name == atcommand_symbol ) name++; // for backwards compatibility ARR_FIND( 0, ARRAYLENGTH(atcommand_info), i, strcmpi(atcommand_info[i].command, name) == 0 ); - return ( i != ARRAYLENGTH(atcommand_info) ) ? &atcommand_info[i] : NULL; + return ( i < ARRAYLENGTH(atcommand_info) ) ? &atcommand_info[i] : NULL; } static AtCommandInfo* get_atcommandinfo_byfunc(const AtCommandFunc func) { int i; ARR_FIND( 0, ARRAYLENGTH(atcommand_info), i, atcommand_info[i].func == func ); - return ( i != ARRAYLENGTH(atcommand_info) ) ? &atcommand_info[i] : NULL; + return ( i < ARRAYLENGTH(atcommand_info) ) ? &atcommand_info[i] : NULL; } -- cgit v1.2.3-70-g09d2