TrinityCore/TrinityCore — pull request #5468 by Elron103 (2012-02-27 22:54:55+00:00)
Title: Core/Auction House: Delete item_instance entries correctly, prevent invalid entries

As already described above, the current version of the auctionhouse creates invalid entries in table item_instance. This causes a great data inconsistency. It is not notable ingame, but it does not delete outdated data from database.

Furthermore this commit adds some comments, I thought it was very hard to understand, what the calculations are doing there without it.