From aaf65b0bb509361f5c4513ea54c294f09d62b240 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 1 Jan 2009 11:51:48 +0000 Subject: fixes comparison between signed and unsigned --- src/core/player.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/player.h b/src/core/player.h index ecb9ea3..dccd8e6 100644 --- a/src/core/player.h +++ b/src/core/player.h @@ -80,7 +80,7 @@ public: inline long credits() const { return player_credits; } /// returns true of the player has enough credits to pay amount - inline bool has_credits(unsigned amount) const { return (player_credits >= amount); } + inline bool has_credits(const long amount) const { return (player_credits >= amount); } /*----- messages -------------------------------------------------- */ -- cgit v1.2.3