i didn't even know it was possible (spotted by adam4813)
authorkoda
Mon, 26 Mar 2012 03:57:14 +0200
changeset 6824 617a861b7750
parent 6823 e54a68b9b844
child 6825 aca4a6807ecc
i didn't even know it was possible (spotted by adam4813)
QTfrontend/util/namegen.cpp
--- a/QTfrontend/util/namegen.cpp	Mon Mar 26 03:36:11 2012 +0200
+++ b/QTfrontend/util/namegen.cpp	Mon Mar 26 03:57:14 2012 +0200
@@ -79,7 +79,7 @@
 
         // there is a chance that this hog has the same hat as the previous one
         // let's reuse the hat-specific dict in this case
-        if ((i == 0) or (team.hedgehog(i).Hat != team.hedgehog(i-1).Hat))
+        if ((i == 0) || (team.hedgehog(i).Hat != team.hedgehog(i-1).Hat))
         {
             dicts = dictsForHat(team.hedgehog(i).Hat);
             dict  = dictContents(dicts[rand()%(dicts.size())]);