Fix foreign inventory call
Merge pull request #561 from StormReaper/foreigninvfix

Fix foreign inventory call