From 21b81a5084c27ffffa5886e8057effcd87ef7656 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Wed, 26 Jul 2017 12:19:28 +0000 Subject: [PATCH] setTBR - check for TBR and RUNTIME --- .../java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java b/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java index ec29a6091a..2f49e78c99 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/commands/SetTbrCommand.java @@ -297,7 +297,7 @@ public class SetTbrCommand implements Command { scripter.verifyMenuIsDisplayed(MenuType.MAIN_MENU); // new TBR set; percentage and duration must be displayed ... if (!scripter.currentMenu.attributes().contains(MenuAttribute.TBR) || - !scripter.currentMenu.attributes().contains(MenuAttribute.TBR)) { + !scripter.currentMenu.attributes().contains(MenuAttribute.RUNTIME)) { throw new CommandException().message("Setting TBR failed, according to MAIN_MENU no TBR is active"); } Double mmTbrPercentage = (Double) scripter.currentMenu.getAttribute(MenuAttribute.TBR);