forked from github/server
dead units with horses in astral space crash the server
This commit is contained in:
parent
9a75def788
commit
62f496a4b5
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ age_unit(region * r, unit * u)
|
|||
}
|
||||
}
|
||||
#ifdef ASTRAL_ITEM_RESTRICTIONS
|
||||
if (u->region->planep==get_astralplane()) {
|
||||
if (u->region && u->region->planep==get_astralplane()) {
|
||||
item ** itemp = &u->items;
|
||||
while (*itemp) {
|
||||
item * itm = *itemp;
|
||||
|
|
Loading…
Reference in a new issue