# HG changeset patch # User koda # Date 1332727034 -7200 # Node ID 617a861b775072372f90729a0cde539e3d44ee62 # Parent e54a68b9b84418dff859f034fcf81ec146d868b8 i didn't even know it was possible (spotted by adam4813) diff -r e54a68b9b844 -r 617a861b7750 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())]);