This commit is contained in:
Enno Rehling 2007-02-04 13:25:05 +00:00
parent 3e09fc0c7d
commit 8d5ee9c811
1 changed files with 4 additions and 4 deletions

View File

@ -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: