Mercurial > hg > openttd
changeset 10028:a17a29216095 draft
(svn r14187) -Fix (r14104): silence warning when compiling without networking enabled.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 29 Aug 2008 21:11:28 +0000 |
parents | 673c3c22b5c5 |
children | 335d819469c8 |
files | src/main_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -62,7 +62,6 @@ void HandleOnEditText(const char *str) { - int id = _rename_id; _cmd_text = str; switch (_rename_what) { @@ -74,7 +73,7 @@ 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();