From 87720c2b9cba9cc6f0f830214ae233adecfb015c 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 bd75c1049..8819f0fd4 100644 --- a/src/economy.c +++ b/src/economy.c @@ -2777,7 +2777,7 @@ static void breed_cmd(unit * u, struct order *ord) m = INT_MAX; } - if (!s[0]) { + if (!s || !s[0]) { p = P_ANY; } else {