Index: common/Game.cpp
===================================================================
--- common/Game.cpp	(revision 48801afdbe8c90d082871e29fc4e59ba3e65686d)
+++ common/Game.cpp	(revision 85da77837157eedc745cb17c9d85ec1f2ad811c2)
@@ -184,5 +184,5 @@
          switch (it->type) {
             case OBJECT_BLUE_FLAG:
-               if (p->team == 2) {
+               if (p->team == Player::TEAM_RED) {
                   p->hasBlueFlag = true;
                   itemId = it->id;
@@ -190,5 +190,5 @@
                break;
             case OBJECT_RED_FLAG:
-               if (p->team == 1) {
+               if (p->team == Player::TEAM_BLUE) {
                   p->hasRedFlag = true;
                   itemId = it->id;
