summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-12 21:08:41 +0000
committerrubidium <rubidium@openttd.org>2009-11-12 21:08:41 +0000
commit1a04b9081ac4ec2ee1636c296571e291ece6a5ac (patch)
tree6c807cb1744b19e029692a065cca8ecdb3d0a193 /src
parent2b39e239a60a812429d3506ee8fd9a16900e44b5 (diff)
downloadopenttd-1a04b9081ac4ec2ee1636c296571e291ece6a5ac.tar.xz
(svn r18056) -Fix (r17737): compiling without networking failed
Diffstat (limited to 'src')
-rw-r--r--src/company_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 710cfe63a..b0aebf2c5 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -89,8 +89,10 @@ void SetLocalCompany(CompanyID new_company)
/* company could also be COMPANY_SPECTATOR or OWNER_NONE */
assert(Company::IsValidID(new_company) || new_company == COMPANY_SPECTATOR || new_company == OWNER_NONE);
+#ifdef ENABLE_NETWORK
/* Delete the chat window, if you were team chatting. */
InvalidateWindowData(WC_SEND_NETWORK_MSG, DESTTYPE_TEAM, _local_company);
+#endif
_local_company = new_company;