From 62f496a4b5fce0f9ac4c76129bcc94c258a3770c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 6 Jul 2008 08:07:22 +0000 Subject: [PATCH] dead units with horses in astral space crash the server --- src/common/gamecode/laws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index e0e258adb..c16fa4363 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -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;