map.c

changeset 49
755bdb97a607
parent 36
63cd573ffbcf
child 51
2d95d77aa954
--- a/map.c	Wed Apr 02 22:05:14 2003 +0200
+++ b/map.c	Sat Apr 05 22:21:24 2003 +0200
@@ -15,7 +15,7 @@
 	
 	for(i=0; map[i].string!=NULL; i++){
 		if(strcmp(str, map[i].string)==0)
-			return i;
+			return map[i].value;
 	}
 	
 	return -1;

mercurial