Added default value for priority time.

This commit is contained in:
LevelX2 2013-06-22 01:56:43 +02:00
parent 738efcc47f
commit 0ab055c0f8

View file

@ -125,6 +125,9 @@ public class MatchOptions implements Serializable {
} }
public int getPriorityTime() { public int getPriorityTime() {
if (matchTimeLimit == null) {
return MatchTimeLimit.NONE.getTimeLimit();
}
return matchTimeLimit.getTimeLimit(); return matchTimeLimit.getTimeLimit();
} }