diff options
Diffstat (limited to 'src')
-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); |