summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/itemdb.c2
-rw-r--r--src/map/script.c2
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;