segmentation fault

This commit is contained in:
Enno Rehling 2014-08-24 12:41:39 +02:00
parent f1d78b4b84
commit 87720c2b9c
1 changed files with 1 additions and 1 deletions

View File

@ -2777,7 +2777,7 @@ static void breed_cmd(unit * u, struct order *ord)
m = INT_MAX; m = INT_MAX;
} }
if (!s[0]) { if (!s || !s[0]) {
p = P_ANY; p = P_ANY;
} }
else { else {