diff --git a/server/vehiclepool.cpp b/server/vehiclepool.cpp index 40dee66..bf21855 100644 --- a/server/vehiclepool.cpp +++ b/server/vehiclepool.cpp @@ -25,3 +25,13 @@ BOOL CVehiclePool::Delete(VEHICLEID VehicleID) return FALSE; } +int CVehiclePool::GetModelCount() +{ + int iCount=0; + for (int i=0; i!=212; i++) { + if(field_0[i]) { + iCount++; + } + } + return iCount; +} diff --git a/server/vehiclepool.h b/server/vehiclepool.h index 529aad6..f7e90a7 100644 --- a/server/vehiclepool.h +++ b/server/vehiclepool.h @@ -15,6 +15,8 @@ public: ~CVehiclePool(); BOOL Delete(VEHICLEID VehicleID); + + int GetModelCount(); }; #endif