crash wenn FOLGE SCHIFF mit nicht-existierendem Schiff gemacht wird

This commit is contained in:
Enno Rehling 2004-04-25 07:37:53 +00:00
parent c83ed97d12
commit 7fb1008f7c
1 changed files with 1 additions and 1 deletions

View File

@ -1996,7 +1996,7 @@ hunt(unit *u)
if (dir == NODIRECTION) {
ship * sh = findship(id);
if (sh->region!=rc) {
if (sh==NULL || sh->region!=rc) {
cmistake(u, findorder(u, u->thisorder), 20, MSG_MOVE);
}
return 0;