Genres: enable and fix the genre_bit method
authorPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 6 Aug 2010 16:23:07 +0000 (18:23 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 6 Aug 2010 16:38:59 +0000 (18:38 +0200)
src/genres.vala

index 7133f1c..0b574cd 100644 (file)
@@ -112,18 +112,16 @@ public struct Genres {
                return _genre_string[genre];
        }
 
-/*
        public static int genre_bit (string genre) {
                int i = 0;
 
                do {
-                       if (_genres[i] == genre) {
+                       if (_genre_string[i] == genre) {
                                return (1 << i);
                        }
                } while (++i < 28);
 
                return 0;
        }
-*/
 }