Thread: Keys
View Single Post
  #5  
Old 09-29-2013, 09:59 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

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
Reply With Quote