Browse Source

区域业务类型改为从0bit开始

zzj 6 years ago
parent
commit
b92c83b7ad
1 changed files with 5 additions and 4 deletions
  1. 5 4
      area_business.cpp

+ 5 - 4
area_business.cpp

@@ -20,6 +20,7 @@ struct area_business_factory
 {
 	void regist(int type,area_business* ab)
 	{
+		type-=1;
 		if(type>=(int)m_check_list.size())
 		{
 			m_check_list.resize(type+1);
@@ -75,11 +76,11 @@ struct area_business_factory
 		regist(6,new area_business_car_attendance);
 		regist(7,new area_business_forbid);
 		//regist(8,new area_business_monkey_area);
-		regist(9,new area_business_card_enter_or_leave);
+		regist(8,new area_business_card_enter_or_leave);
 
-		regist(10, new area_business_motionless_persion);
-		regist(11, new area_business_geofault);
-		regist(12, new area_business_work_rate);
+		regist(9, new area_business_motionless_persion);
+		regist(10, new area_business_geofault);
+		regist(11, new area_business_work_rate);
 	}
 
 };