CleverRaven/Cataclysm-DDA — pull request #10355 by DavidKeaton (2014-12-06 18:10:57+00:00)
Title: Fix for installing parts to vehicle duplicating part

So, playing with my main file I realized that when you attempt to install a part to a vehicle from outside of your inventory, you have a chance to duplicate the installed item by attempting *again*, without moving, to install the part once more.

The issue occurs because the cache crafting_inv (of which the parts list to install is made from), does not update because the player has not moved. You'd figure since the turn was different...

So for now, just a minor fix so that while in a vehicle the cache is refreshed, disallowing duplication.

That's all!

-Davek