Small fix on GetOtherInventory(), variable was missing

This fixes a missing declaration for other inventory when the task is returned.