mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-01 20:03:26 +00:00
(svn r10126) -Fix (r10111, FS#864): old_new_hash cache was not reset when the position hash were
This commit is contained in:
parent
031565527e
commit
da1743e980
@ -540,6 +540,8 @@ static void UpdateVehiclePosHash(Vehicle* v, int x, int y)
|
||||
|
||||
void ResetVehiclePosHash()
|
||||
{
|
||||
Vehicle *v;
|
||||
FOR_ALL_VEHICLES(v) { v->old_new_hash = NULL; }
|
||||
memset(_vehicle_position_hash, 0, sizeof(_vehicle_position_hash));
|
||||
memset(_new_vehicle_position_hash, 0, sizeof(_new_vehicle_position_hash));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user