summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-29 21:11:28 +0000
committerrubidium <rubidium@openttd.org>2008-08-29 21:11:28 +0000
commit468655c916975f88da0fe66488a15004848e2b81 (patch)
tree3e6c55d40e7be267a938272813b3f8b10a56a07a
parentead8de78ea25a96ebfb8f7e5cad8c49c29d96b18 (diff)
downloadopenttd-468655c916975f88da0fe66488a15004848e2b81.tar.xz
(svn r14187) -Fix (r14104): silence warning when compiling without networking enabled.
-rw-r--r--src/main_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 39d44d9c6..5417166ed 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -62,7 +62,6 @@ void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2)
void HandleOnEditText(const char *str)
{
- int id = _rename_id;
_cmd_text = str;
switch (_rename_what) {
@@ -74,7 +73,7 @@ void HandleOnEditText(const char *str)
uint32 money_c = Clamp(ClampToI32(money), 0, 20000000); // Clamp between 20 million and 0
/* Give 'id' the money, and substract it from ourself */
- DoCommandP(0, money_c, id, CcGiveMoney, CMD_GIVE_MONEY | CMD_MSG(STR_INSUFFICIENT_FUNDS));
+ DoCommandP(0, money_c, _rename_id, CcGiveMoney, CMD_GIVE_MONEY | CMD_MSG(STR_INSUFFICIENT_FUNDS));
} break;
#endif /* ENABLE_NETWORK */
default: NOT_REACHED();