v2.1.4: added a null safety check in InventoryPaneSlot
This commit is contained in:
@@ -551,7 +551,7 @@ public class InventoryPane extends Component {
|
||||
|
||||
if (selector == null && item.defaultAction() != null){
|
||||
item.execute(Dungeon.hero);
|
||||
if (item.usesTargeting) {
|
||||
if (item != null && item.usesTargeting) {
|
||||
targetingSlot = this;
|
||||
InventoryPane.useTargeting();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user