mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 15:30:00 +00:00
(svn r21420) -Fix: admins were always given the stats of company 0
This commit is contained in:
parent
54f3e04590
commit
1dfd5c6405
@ -377,11 +377,11 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCompanyStats()
|
|||||||
p->Send_uint8(company->index);
|
p->Send_uint8(company->index);
|
||||||
|
|
||||||
for (uint i = 0; i < NETWORK_VEH_END; i++) {
|
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++) {
|
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);
|
this->SendPacket(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user