From 31ad8bdd07e43dc00c321cbe1e3ed3420efccf27 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 27 May 2019 14:54:07 +0100 Subject: [PATCH] Do not add virtual vehicles to tile hash --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 7e9fbfd93b..07932435cf 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -734,7 +734,7 @@ static void UpdateVehicleTileHash(Vehicle *v, bool remove) Vehicle **old_hash = v->hash_tile_current; Vehicle **new_hash; - if (remove) { + if (remove || HasBit(v->subtype, GVSF_VIRTUAL)) { new_hash = nullptr; } else { int x = GB(TileX(v->tile), HASH_RES, HASH_BITS);