QTfrontend/util/namegen.cpp
changeset 6824 617a861b7750
parent 6700 e04da46ee43c
child 6930 d187ea93fc4f
--- 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())]);