diff --git a/src/common/modules/wormhole.c b/src/common/modules/wormhole.c index 352abc95c..06c21cdce 100644 --- a/src/common/modules/wormhole.c +++ b/src/common/modules/wormhole.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -32,7 +33,7 @@ static boolean good_region(const region * r) { - return (r->units!=NULL && r->land!=NULL); + return (rplane(r)==NULL && r->units!=NULL && r->land!=NULL); } static int