diff options
author | Stijn Buys <ingar@osirion.org> | 2009-01-01 11:51:48 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-01-01 11:51:48 +0000 |
commit | aaf65b0bb509361f5c4513ea54c294f09d62b240 (patch) | |
tree | b76c3a4e6fe3dc85099f838127ebfe11802c7252 /src/core | |
parent | 4e1d951705204899ee99d7fcedf582b25b86b506 (diff) |
fixes comparison between signed and unsigned
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/player.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 -------------------------------------------------- */ |