Waypoint* psPathNetwork::CreateWaypoint(iDataConnection *db, csString& name, csVector3& pos, csString& sectorName, float radius, csString& flags) { Waypoint *wp = CreateWaypoint(name,pos,sectorName,radius,flags); if (!wp->Create(db)) { delete wp; return NULL; } return wp; }