From a1a810a094228fc09e0163b43b6b621d298da78e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 24 Aug 2014 12:41:39 +0200 Subject: [PATCH] segmentation fault --- src/economy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/economy.c b/src/economy.c index 633e7f87e..940fec4f8 100644 --- a/src/economy.c +++ b/src/economy.c @@ -2775,7 +2775,7 @@ static void breed_cmd(unit * u, struct order *ord) m = INT_MAX; } - if (!s[0]) { + if (!s || !s[0]) { p = P_ANY; } else {