forked from github/server
crash
This commit is contained in:
parent
3e09fc0c7d
commit
8d5ee9c811
|
@ -2410,9 +2410,9 @@ get_clone(const unit *u)
|
||||||
unit *
|
unit *
|
||||||
get_clone_mage(const unit *u)
|
get_clone_mage(const unit *u)
|
||||||
{
|
{
|
||||||
attrib * a = a_find(u->attribs, &at_clonemage);
|
attrib * a = a_find(u->attribs, &at_clonemage);
|
||||||
if (a!=NULL) return (unit*)a->data.v;
|
if (a!=NULL) return (unit*)a->data.v;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
|
@ -2420,7 +2420,7 @@ is_moving_ship(const region * r, const ship *sh)
|
||||||
{
|
{
|
||||||
const unit *u = shipowner(sh);
|
const unit *u = shipowner(sh);
|
||||||
|
|
||||||
switch (get_keyword(u->thisorder)) {
|
if (u) switch (get_keyword(u->thisorder)) {
|
||||||
case K_ROUTE:
|
case K_ROUTE:
|
||||||
case K_MOVE:
|
case K_MOVE:
|
||||||
case K_FOLLOW:
|
case K_FOLLOW:
|
||||||
|
|
Loading…
Reference in New Issue