Do not add virtual vehicles to tile hash

pull/91/head
Jonathan G Rennison 5 years ago
parent a7cfe167a3
commit 31ad8bdd07

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

Loading…
Cancel
Save