It's definitely the lockpick code...
I don't know all of the calling methods that use this, but..
You could:
- Add a (keyneeded != 0) check when assigning the lockpick item pointer..
- Check the return of lockpick assignment for ItemTypeLockPick and re-nullptr a false condition..
- Add a (keyneeded != 0) check as a secondary condition after (lockpicks != nullptr)
By having anything on the cursor, he's invoking the lockpick code on..which will fail if:
- his class doesn't have 'Pick Locks' or..
- the item being held isn't an ItemTypeLockPick
__________________
Uleat of Bertoxxulous
Compilin' Dirty
|