A few minor bug-fixes

Fixed a couple of bugs that caused crashes when running in debug mode in MSVC. Also fixed a (bug?) that allowed players to "drag" items from vendors across map-loads, doesn't cause issues but it doesn't seem like it should be allowed.