diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-08 10:23:24 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-08 10:23:24 +0000 |
commit | f29359fcf2aa39215fa25d296b657fc4bc88f834 (patch) | |
tree | c963dfaa831707f0839f220f964712041192092c /src/map | |
parent | e02735add93bb769c7911976eecac42544f33736 (diff) | |
download | hercules-f29359fcf2aa39215fa25d296b657fc4bc88f834.tar.gz hercules-f29359fcf2aa39215fa25d296b657fc4bc88f834.tar.bz2 hercules-f29359fcf2aa39215fa25d296b657fc4bc88f834.tar.xz hercules-f29359fcf2aa39215fa25d296b657fc4bc88f834.zip |
Fixed wrong message in item group loading code (bugreport:936)
Fixed 'charisalpha' not working for the first char (bugreport:940)
Disabled signed/unsigned warnings for visual studio 2005
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12186 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/itemdb.c | 2 | ||||
-rw-r--r-- | src/map/script.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index bce1989e5..7d2623fce 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -515,7 +515,7 @@ static void itemdb_read_itemgroup_sub(const char* filename) char w1[1024], w2[1024]; if( (fp=fopen(filename,"r"))==NULL ){ - ShowError("can't read %s\n", line); + ShowError("can't read %s\n", filename); return; } diff --git a/src/map/script.c b/src/map/script.c index e907da19d..87d0d40b0 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11569,7 +11569,7 @@ BUILDIN_FUNC(charisalpha) const char *str=script_getstr(st,2); int pos=script_getnum(st,3); - int val = ( str && pos>0 && (unsigned int)pos<strlen(str) ) ? ISALPHA( str[pos] ) : 0; + int val = ( str && pos >= 0 && (unsigned int)pos < strlen(str) ) ? ISALPHA( str[pos] ) : 0; script_pushint(st,val); return 0; |