diff options
author | rubidium <rubidium@openttd.org> | 2010-12-06 14:55:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-06 14:55:47 +0000 |
commit | 1dfd5c64051daaff91d6947c7da21c9325588c45 (patch) | |
tree | ec26aacda3be316752fb99fc6d7fe79f8ad6a18b /src/network | |
parent | 54f3e045906a5e842550a1e969eb6f84b978914a (diff) | |
download | openttd-1dfd5c64051daaff91d6947c7da21c9325588c45.tar.xz |
(svn r21420) -Fix: admins were always given the stats of company 0
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_admin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_admin.cpp b/src/network/network_admin.cpp index bec206e30..47b05542d 100644 --- a/src/network/network_admin.cpp +++ b/src/network/network_admin.cpp @@ -377,11 +377,11 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCompanyStats() p->Send_uint8(company->index); for (uint i = 0; i < NETWORK_VEH_END; i++) { - p->Send_uint16(company_stats->num_vehicle[i]); + p->Send_uint16(company_stats[company->index].num_vehicle[i]); } for (uint i = 0; i < NETWORK_VEH_END; i++) { - p->Send_uint16(company_stats->num_station[i]); + p->Send_uint16(company_stats[company->index].num_station[i]); } this->SendPacket(p); |