Bertram25/manaserv — comment on commit 4cc8de710f2ecedeb7b3d672a305ef66ade97ce6
File: src/game-server/inventory.cpp line 297
By Bertram25:

Note to self: Those two lines are problematic.

it->second.amount = 0;
it->second.itemId = 0;
As they're leading to ghost slots. I first thought it would be better to not destroy/recreate slots in memory while playing, but in fact, it simplifies the code in other areas, and was the previous philosophy anyway. Must also make the .find() calls a bit quicker, maybe?