From e8ab531281f8bf494085f41c0a6202be27b8d7d6 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Thu, 24 Sep 2015 23:57:41 +0200
Subject: [PATCH] fix -m check

---
 bin/hafas-m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/hafas-m b/bin/hafas-m
index 2cb7a2b..de047e1 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -86,7 +86,7 @@ sub parse_mot_options {
 
 	my $default_yes = 1;
 
-	if ($hafas_url) {
+	if ( $types and $hafas_url ) {
 		say STDERR 'The options -u and -m cannot be combined. Discarding -m';
 		return;
 	}
-- 
GitLab