Merge branch 'master' of git://git.openpandora.org/pandora-libraries
[pandora-libraries.git] / lib / pnd_tinyxml.cpp
index 5e53ab9..6a7e2e3 100644 (file)
@@ -242,7 +242,7 @@ unsigned char pnd_pxml_parse ( const char *pFilename, char *buffer, unsigned int
                                if (!(subcat)) continue;
 
                                //TODO: This is ugly. Fix pnd_pxml_t so that there can be more than 2 category 'trees' and more than 2 subcategories. Then this can be removed.
-                               switch (j & (i << 1))
+                               switch (j | (i << 1))
                                {
                                case 0:
                                        app->subcategory1 = subcat;