SCI: kq6 cd inventory stack overflow script patch

fixes bug #3293954