--- deliantra/server/include/region.h 2007/07/11 16:55:18 1.7 +++ deliantra/server/include/region.h 2007/07/13 15:54:40 1.8 @@ -29,6 +29,8 @@ #ifndef REGION_H #define REGION_H +typedef refptr region_ptr; + /* * Each map is in a given region of the game world and links to a region definition, so * they have to appear here in the headers, before the mapdef @@ -37,7 +39,7 @@ struct region : zero_initialised, attachable { shstr ACC (RW, name); /* Shortend name of the region as maps refer to it */ - region *ACC (RW, parent); /* + region_ptr ACC (RW, parent); /* * Pointer to the region that is a parent of the current * region, if a value isn't defined in the current region * we traverse this series of pointers until it is. @@ -60,6 +62,8 @@ static region *find (const char *name); static region *find_fuzzy (const char *name); static region *read (object_thawer &f); + + void do_destroy (); }; typedef object_vector regionvec;