(svn r10126) -Fix (r10111, FS#864): old_new_hash cache was not reset when the position hash were

This commit is contained in:
glx 2007-06-13 01:38:00 +00:00
parent 031565527e
commit da1743e980
1 changed files with 2 additions and 0 deletions

View File

@ -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));
}