clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
166 stars 41 forks source link

fix segfault when right clicking a quest item #843

Closed pmer closed 12 years ago

pmer commented 12 years ago

Quest items should be explicitly handled (AKA ignored) when the player "activates" them in their inventory.

Otherwise the game goes ahead and looks up the quest item's equipment slot, which returns -1, and gets an invalid array access, causing a sad face to appear on this player's face.

clintbellanger commented 12 years ago

Thanks for the fix!