Fix loss of quick key bindings for temporary or missing items
For #8551 (closed)
The issue with current impl is that assignItem requires a ptr. Another approach is to overload assignItem that takes an item Id, but then that requires (afaik) adding a lot of code just to fix a rather harmless and uncommon difference with vanilla.
Edited by Kuyondo