dead units with horses in astral space crash the server

This commit is contained in:
Enno Rehling 2008-07-06 08:07:22 +00:00
parent 9a75def788
commit 62f496a4b5
1 changed files with 1 additions and 1 deletions

View File

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