summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'command.h')
-rw-r--r--command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.h b/command.h
index c6c514938..6a9764c06 100644
--- a/command.h
+++ b/command.h
@@ -192,5 +192,5 @@ bool IsValidCommand(uint cmd);
int32 GetAvailableMoneyForCommand(void);
/* Validate functions for rail building */
-static inline bool ValParamRailtype(uint32 rail) { return (rail > GetPlayer(_current_player)->max_railtype) ? false : true;}
+static inline bool ValParamRailtype(uint32 rail) { return rail <= GetPlayer(_current_player)->max_railtype;}
#endif /* COMMAND_H */