From 0ab055c0f8d06fdba09fccb65d87a318d36258cd Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 22 Jun 2013 01:56:43 +0200 Subject: [PATCH] Added default value for priority time. --- Mage/src/mage/game/match/MatchOptions.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mage/src/mage/game/match/MatchOptions.java b/Mage/src/mage/game/match/MatchOptions.java index ad6187f224..b54e3adabb 100644 --- a/Mage/src/mage/game/match/MatchOptions.java +++ b/Mage/src/mage/game/match/MatchOptions.java @@ -125,6 +125,9 @@ public class MatchOptions implements Serializable { } public int getPriorityTime() { + if (matchTimeLimit == null) { + return MatchTimeLimit.NONE.getTimeLimit(); + } return matchTimeLimit.getTimeLimit(); }