Skip to content

Commit e26ff80

Browse files
committed
fix inventory templates
1 parent 9fef9e5 commit e26ff80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Battlescape/InventoryState.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ void InventoryState::btnCreateTemplateClick(Action *action)
563563

564564
void InventoryState::btnApplyTemplateClick(Action *action)
565565
{
566-
// don't accept clicks when moving items
567-
if (_inv->getSelectedItem() != 0)
566+
// don't accept clicks when moving items or when the template is empty
567+
if (_inv->getSelectedItem() != 0 || _curInventoryTemplate.empty())
568568
{
569569
return;
570570
}

0 commit comments

Comments
 (0)