diff options
author | rubidium <rubidium@openttd.org> | 2008-12-23 11:06:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-23 11:06:52 +0000 |
commit | 97662a0fff0a8c5099ee48f43d15ab0881493393 (patch) | |
tree | 74de767fc4a572fdb693131f990cc1ae2f5c830b /src/network/network.cpp | |
parent | 768fdee77a851286b6a6d33e04df18dc56ab1f51 (diff) | |
download | openttd-97662a0fff0a8c5099ee48f43d15ab0881493393.tar.xz |
(svn r14723) -Codechange: shuffling some stuff around to reduce indirect #include dependencies.
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r-- | src/network/network.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index ac49cb08b..58826e1e3 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -107,7 +107,7 @@ extern void StateGameLoop(); */ NetworkClientInfo *NetworkFindClientInfoFromIndex(ClientIndex index) { - return &_network_client_info[index]; + return IsValidNetworkClientInfoIndex(index) ? GetNetworkClientInfo(index) : NULL; } /** |