[Orxonox-commit 4377] r9048 - code/trunk/src/orxonox/gametypes

dafrick at orxonox.net dafrick at orxonox.net
Wed Mar 21 08:06:06 CET 2012


Author: dafrick
Date: 2012-03-21 08:06:06 +0100 (Wed, 21 Mar 2012)
New Revision: 9048

Modified:
   code/trunk/src/orxonox/gametypes/TeamGametype.cc
Log:

Resolving a warning.


Modified: code/trunk/src/orxonox/gametypes/TeamGametype.cc
===================================================================
--- code/trunk/src/orxonox/gametypes/TeamGametype.cc	2012-03-18 17:43:24 UTC (rev 9047)
+++ code/trunk/src/orxonox/gametypes/TeamGametype.cc	2012-03-21 07:06:06 UTC (rev 9048)
@@ -317,7 +317,7 @@
 
     void TeamGametype::colourPawn(Pawn* pawn, int teamNr)
     {// catch: no-colouring-case and wrong input
-        if(teamNr < 0 || teamNr+1 > this->teamcolours_.size() ||pawn == NULL) return;
+        if(teamNr < 0 || teamNr+1 > int(this->teamcolours_.size()) ||pawn == NULL) return;
         pawn->setRadarObjectColour(this->teamcolours_[teamNr]);
 
         std::set<WorldEntity*> pawnAttachments = pawn->getAttachedObjects();




More information about the Orxonox-commit mailing list