We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fef9e5 commit e26ff80Copy full SHA for e26ff80
1 file changed
src/Battlescape/InventoryState.cpp
@@ -563,8 +563,8 @@ void InventoryState::btnCreateTemplateClick(Action *action)
563
564
void InventoryState::btnApplyTemplateClick(Action *action)
565
{
566
- // don't accept clicks when moving items
567
- if (_inv->getSelectedItem() != 0)
+ // don't accept clicks when moving items or when the template is empty
+ if (_inv->getSelectedItem() != 0 || _curInventoryTemplate.empty())
568
569
return;
570
}
0 commit comments