src/command.h
branchnoai
changeset 9694 e72987579514
parent 9641 855e32c08c9b
child 9703 d2a6acdbd665
--- a/src/command.h	Fri Aug 03 19:16:36 2007 +0000
+++ b/src/command.h	Fri Aug 03 22:09:42 2007 +0000
@@ -194,9 +194,9 @@
 static inline bool CmdFailed(CommandCost cost) { return cost.Failed(); }
 static inline bool CmdSucceeded(CommandCost cost) { return cost.Succeeded(); }
 
-static const CommandCost CMD_ERROR = CommandCost((StringID)INVALID_STRING_ID);
+static const CommandCost CMD_ERROR = CommandCost(INVALID_STRING_ID);
 
-#define return_cmd_error(errcode) do { return CommandCost((StringID)(errcode)); } while (0)
+#define return_cmd_error(errcode) do { return CommandCost(errcode); } while (0)
 
 /* command.cpp */
 typedef void CommandCallback(bool success, TileIndex tile, uint32 p1, uint32 p2);