src/player_base.h
changeset 9661 7bfc9b673b17
parent 9659 187142ff9b6c
child 9890 d78e15f4ac71
--- a/src/player_base.h	Fri Jul 18 20:44:35 2008 +0000
+++ b/src/player_base.h	Fri Jul 18 21:01:30 2008 +0000
@@ -80,11 +80,9 @@
 	inline bool IsValid() const { return this->name_1 != 0; }
 };
 
-inline bool operator < (PlayerID p, uint u) {return (uint)p < u;}
-
 static inline bool IsValidPlayerID(PlayerID index)
 {
-	return index < GetPlayerPoolSize() && GetPlayer(index)->IsValid();
+	return (uint)index < GetPlayerPoolSize() && GetPlayer(index)->IsValid();
 }
 
 #define FOR_ALL_PLAYERS_FROM(d, start) for (d = GetPlayer(start); d != NULL; d = (d->index + 1U < GetPlayerPoolSize()) ? GetPlayer(d->index + 1U) : NULL) if (d->IsValid())