summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 21eedb9c0..91c24fd65 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;