forked from github/server
crash wenn FOLGE SCHIFF mit nicht-existierendem Schiff gemacht wird
This commit is contained in:
parent
c83ed97d12
commit
7fb1008f7c
|
@ -1996,7 +1996,7 @@ hunt(unit *u)
|
||||||
|
|
||||||
if (dir == NODIRECTION) {
|
if (dir == NODIRECTION) {
|
||||||
ship * sh = findship(id);
|
ship * sh = findship(id);
|
||||||
if (sh->region!=rc) {
|
if (sh==NULL || sh->region!=rc) {
|
||||||
cmistake(u, findorder(u, u->thisorder), 20, MSG_MOVE);
|
cmistake(u, findorder(u, u->thisorder), 20, MSG_MOVE);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue