From 131f9e39d3ade7052c23bda339a66d32b354b9c8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 25 Nov 2008 23:24:38 +0000 Subject: [PATCH] (svn r14633) -Fix: compile failure when building a debug build without network support. --- src/main_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 21eedb9c07..91c24fd652 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -267,7 +267,9 @@ struct MainWindow : Window case '1' | WKC_ALT: // Gimme money /* Server can not cheat in advertise mode either! */ +#ifdef ENABLE_NETWORK if (!_networking || !_network_server || !_settings_client.network.server_advertise) +#endif /* ENABLE_NETWORK */ DoCommandP(0, 10000000, 0, NULL, CMD_MONEY_CHEAT); break;